I've installed gulp
npm install --global gulp
and set envidoment variable:
- variable: GULP_HOME
- Value: C:\Users\myaccount\AppData\Roaming\npm\node_modules\gulp (..\gulp is folder)
in environment variables And try to run "gulp". Then i get a message in cmd:
C:\myaccount\workspace\todoparrot>gulp
[09:47:24] Local gulp not found in C:\myaccount\workspace\todoparrot
How to set gulp to work?
Gulp requires two parts to work in any project:the gulp object that has the 5 functions attached, ( src , dest , watch , run , task ). this is installed locally for a project, as well as all the plugins necessary, because it is included in your taskfiles such as gulpfile. js . Its a locally imported module.
First run npm -g install gulp-cli then run gulp -v. Alternatively, you can just run npm list gulp.
I installed gulp globally, then used the link command to link the current directory to the global installation. I used the command -
npm link gulp
You must locally install gulp to that folder. Use the following command:
npm install gulp
if it is not fixed, try to install it globally:
npm install gulp-cli -g
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With