Can't install gulp globally

1.5k Views Asked by At

I can't install gulp globally on my windows 7 machine. I used npm install --global gulp-cli but showed this error:

this

when i used gulp -v I got this error

enter image description here

please help

2

There are 2 best solutions below

6
rassakra On

try this commands: If you've previously installed gulp globally, try to delete it using:

npm rm --global gulp

After that install new version of gulp using:

npm install --global gulp
npm link gulp

and verify yourgulp version:

gulp --version
0
Moshtafizur Rahman On

At least, It solved! I followed this article install gulp till step #2 then I installed gulp globally on terminal using this code npm install gulp-cli -g.

Thank you everyone for help me.