Can't install gulp on windows 10

2019-09-17 18:22发布

问题:

I'm busy learning Laravel and in the process trying to install gulp.

Operating system: Windows 10

In the command line: npm -v gives: 2.15.2 node -v gives: v4.4.5

Then I tried all kinds of ways I found on the internet to install gulp, all give me a cursor that keeps rotating and nothing happens.

What I tried:

npm install -g gulp

npm install gulp -g

npm install --global gulp-cli

I also tried: npm config set proxy false npm cache clean

That didn't help.

What am I doing wrong?

回答1:

This also worked for me too:

npm install gulp -g -verbose

add --verbose for another package if you need to, and if it's still not working, maybe you must install package to global first by adding -g, and after that, install in your project folder.



回答2:

Finally!!!, this worked: npm install gulp -g -verbose



标签: node.js npm gulp