gulp - Gulp command not found - gulp sass - gulp tutorial - learn gulp
gulp tutorials tag - gulp , gulp sass , gulp watch , gulp meaning , gulp js , gulp uglify , concat javascript , eisi gulp , gulp concat , gulp install , gulp tutorial , what is gulp , npm install gulp , gulpjs
How to re-run the gulp command?
- You ran the following command for installing Gulp (a node package module) globally:
- The installation succeed but when you ran this gulp command in the command line you got a "gulp: command not found" error.
- It looks like that installed “Gulp” in your local folder that is /Users/YOURUSERNAME/node_modules and not in the global NPM folder.
- You can check this by running this command: npm root or npm root -g, which was returning my personal directory /Users/YOURUSERNAME/node_modules and not the expected /usr/local/lib/node_modules.
- After some trial & error, finally found the solution. You have to change the “npm config prefix” like so: npm config set prefix /usr/local
- Then when you re-ran npm root -g, you got the correct root folder: /usr/local/lib/node_modules
- When you reinstalled Gulp globally (with the -g param) it finally worked and appeared that it was now correctly installed in the global NPM folder.
learn gulp tutorial - gulp command not found - gulp example