【发布时间】:2018-10-16 22:20:06
【问题描述】:
我的 ubuntu 16.04 电脑中有 nodejs 版本 4.2.6。
我尝试使用命令sudo npm install -g n安装n,出现以下错误。
Node.js 4 is supported but the specific version you're running has
已知会破坏 npm 的错误。请更新到至少 4.7.0 才能使用它 npm 版本。你可以在https://nodejs.org/找到最新版本的 Node.js
我卸载了当前的nodejs,然后重新安装了它。但是每次安装4.2.6版本。我不明白为什么没有安装最新版本。我按照这个链接重新安装了我的nodejs enter link description here
我是否需要更新其他人才能拥有最新的 nodejs ?请指导我
【问题讨论】:
-
我不知道为什么有人认为我的问题没有用。如果有什么不清楚的地方,你应该要求把事情弄清楚。我在没有 stackoverflow 的帮助下解决了我的问题。我在这里找到了我的解决方案。 [askubuntu.com/questions/786272/…。这是给那些遇到这个问题的人。谢谢
标签: node.js npm-install