问题
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
来源:https://stackoverflow.com/questions/39547755/cant-install-gulp-on-windows-10