简体   繁体   English

安装节点8.0,但npm卡在旧版本上

[英]Node 8.0 install, but npm stuck on old version

Installed node version v8 on windows 10. It says it comes delivered with npm 5.... But it's stuck on 3.5.3 在Windows 10上安装了节点版本v8。它说它随npm 5一起提供。...但是卡在3.5.3上

λ npm i -g npm
npm ERR! Windows_NT 10.0.14393

npm ERR! argv "npm" "i" "-g" "npm"

npm ERR! node v8.0.0

**npm ERR! npm  v3.5.3**

**npm ERR! code MODULE_NOT_FOUND**

**npm ERR! Cannot find module 'internal/fs'**
npm ERR!

npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>


npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\user\npm-debug.log

What i've done: 我做了什么:

  • Uninstall node and reinstall it 卸载节点并重新安装
  • Install a different version of node (7.7.0) and see if it updated npm 安装其他版本的节点(7.7.0),然后查看它是否更新了npm
  • used npm clean cache -f 使用过的npm clean cache -f

And none of these things worked... So any ideas? 这些东西都没有起作用...那么有什么想法吗?

I had the same problem and had to run 我遇到了同样的问题,不得不跑步

npm install npm@latest -g

from the command line. 从命令行。 I was told node and npm versions will be different. 有人告诉我节点和npm版本会有所不同。

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

sudo apt-get install -y nodejs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM