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?
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.
For my case, this is worked for me.
installed gulp globally : npm install gulp -g
and I had to add npm installation directory.
C:\\Users\\{USER}\\AppData\\Roaming\\npm;
To my system path in my environment variables
最后!!!,这奏效了: npm install gulp -g -verbose
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.