If you want to know what the -save-dev flag does, check out this Stack Overflow post. First, type npm install -save-dev gulp in your terminal.Once Node & npm have been installed, we can now install Gulp & gulp-imagemin by following these steps: This is so I can provide an example, as I have previously installed all of this in my current project directory. You’ll notice that this file was created in a different directory than the one I started with. You'll be asked a series of questions but if you don't want to answer them you don't have to, just hit enter until you see Is this OK? (yes), then hit Enter one last time and you'll be finished with this section. We do this by using the command npm init (find out more about package.json here). Next we need to create a package.json file for our project.You can check the version of npm by typing npm -v in your terminal. Once Node.js is installed, you'll have npm installed as well because it comes bundled with Node.It could take a few minutes so +be patient.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |