Please see the attached image. I have installed node js. After open my git bash, if i run node -v, its give me node version but after i write npm -v, i have passed a long time, like more than 30 minute. it is giving me any output. no error or no warning, nothing. just stay like my attached image. Here is the command also-
shamim@DESKTOP-3C7P5TO MINGW64 /e/wamp64/www/vuejspractice/vue-cli-dev
$ node -v
v8.9.4
shamim@DESKTOP-3C7P5TO MINGW64 /e/wamp64/www/vuejspractice/vue-cli-dev
$ npm -v
Same result when i run this also
npm install
Passed after a long time more than 30 minutes. nothing happen.
Please someone give me a solution.
尝试先运行npm init
然后继续执行enter
以跳过问题,请确保您具有package.json
文件,然后尝试运行npm -v
I had the same problem, any command that starts with npm just hangs. Apparently I accidentally set up the wrong prefix in my npm. The way I solved it:
voila, it's back to what it was again.
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.