1
votes

I installed gulp following the standard procedure:

$ npm install --global gulp-cli

adding the project dev dependency

$ npm install --save-dev gulp

and a gulpfile.js

When running gulp from Git Bash I get the error gulp: command not found

I followed related threads here on SO updating my path variable (Windows 7) with C:\Users\username\AppData\Roaming\npm to no avail

I actually didn't find any gulp folders inside C:\Users\username\AppData\Roaming\npm (other packages are still there and function as expected). Instead, gulp seems to get installed to C:\Program Files\Git\usr\local

Running npm root and npm root -g respectively, return C:\Users\username\node_modules and C:\Program Files\Git\usr\local\node_modules

I also got the following warnings when running npm install --save-dev gulp enter image description here

I feel like I mixed up paths somehow, but I'm a bit lost, as I'm new to Node and Gulp.

1
npm uninstall -g gulp and then npm install -g gulpMuhammad Usman

1 Answers

-1
votes

After open command shell with administrator simply write npm install -g gulp and npm install -g gulp-cli. You can reach from every location to gulp then.