最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

如何在Ubuntu 18.10中安装Node Js?

IT培训 admin 15浏览 0评论

如何在Ubuntu 18.10中安装Node Js?

我正在尝试在Ubuntu 18.10中安装nodejs,但它返回一些错误。

The following packages have unmet dependencies:
 nodejs : Depends: python-minimal but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

上面是我通过cammand安装节点Js​​得到的消息:sudo apt-get install nodejs。

回答如下:

如本link所述:

安装节点版本管理器:

curl -o- https://raw.githubusercontent/creationix/nvm/v0.32.0/install.sh | bash

激活nvm:

. ~/.nvm/nvm.sh

使用nvm安装所需的节点版本:

nvm install 4.4.5

测试Node.js是否已安装:

node -e "console.log('Running Node.js ' + process.version)"

如何在Ubuntu 18.10中安装Node Js?

我正在尝试在Ubuntu 18.10中安装nodejs,但它返回一些错误。

The following packages have unmet dependencies:
 nodejs : Depends: python-minimal but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

上面是我通过cammand安装节点Js​​得到的消息:sudo apt-get install nodejs。

回答如下:

如本link所述:

安装节点版本管理器:

curl -o- https://raw.githubusercontent/creationix/nvm/v0.32.0/install.sh | bash

激活nvm:

. ~/.nvm/nvm.sh

使用nvm安装所需的节点版本:

nvm install 4.4.5

测试Node.js是否已安装:

node -e "console.log('Running Node.js ' + process.version)"

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论