Can't install gulp on windows 10

岁酱吖の 提交于 2019-12-12 01:45:01

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!