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:
npm install -g gulp
Clicking "Copy Code" button will copy the code into the clipboard - memory. Please paste(Ctrl+V) it in your destination. The code will get pasted. Happy coding from Wikitechy - gulp tutorial - gulp guides - gulp - rubyonrails - learn gulp - team
- 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
For Example
rickys-MacBook-Pro-2:laravel5-demo-project rickyspires$
$ sudo npm -g install npm@latest
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
[email protected] /usr/local/lib/node_modules/npm
$ sudo npm install gulp --no-bin-link
[email protected] node_modules/gulp
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected],
[email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected],
[email protected], [email protected], [email protected],
[email protected], [email protected], [email protected], [email protected],
[email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected],
[email protected], [email protected], [email protected], [email protected])
$ gulp
-bash: gulp: command not found
$ gulp watch
-bash: gulp: command not found