我在我的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的bug。请至少更新到4.7.0才能使用此版本的npm。您可以在上找到最新版本的Node.js
每次安装4.2.6版本时,我都会卸载当前的nodejs,然后重新安装。我不明白为什么没有安装最新版本。我按照此链接重新安装了我的nodejs
是否需要更新其他版本才能拥有最新的nodej
我无法以任何方式将nodejs更新到最新版本。
MacBook-Pro:claudiofiamingo$ node -v
v6.9.0
MacBook-Pro:claudiofiamingo$ sudo npm cache clean -f
Password: npm WARN using --force I sure hope you know what you are doing.
MacBook-Pro:claudiofiamingo$ sudo npm install -g n
/Users/claudiofiamingo/.nvm/versions/node/v6.9.0/
当我试图更新Ubuntu18.04中的nodejs和nodejs(带有--with-new-pkgs选项)时,我收到了这条消息。
The following packages have unmet dependencies:
libssl-dev : Conflicts: libssl1.0-dev but 1.0.2n-1ubuntu5.1 is going to be installed
Recommends: libssl-doc but it is not going to be installed
libssl1.0-dev : Conflicts:
在我的系统Ububntu19.04上运行时,我发现安装nodejs很困难
运行sudo apt install nodejs后
我发现了以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libc-ares2 libnode64 libuv1 nodejs-doc
Suggested packages:
npm
The follow
在下载SDK并发现它确实进行了提取之后,尽管它抛出了大量警告并将输出写入一个非标准位置,然后我发现了更多的非标准内容--它希望安装npn和n节点。此外,它将它们的名字大写起来,尽管它们不应该大写。
所以,我终于安装了这些,现在当我为SDK运行./configure时,它告诉我它需要节点V0.6.15或更高版本,正如您在这里看到的,我正在运行0.10.0
mjs@ubuntu:/tmp/azure$ ./configure
Node version needs to be higher than 0.6.15
Npm is installed. Version: 1.2.14
mjs@ubun