美文网首页
Ubuntu安装Node.js

Ubuntu安装Node.js

作者: 鐘濤 | 来源:发表于2017-06-03 00:04 被阅读0次

官方文档:这里

  1. 稳定版 node.js v6.10.3 + npm 3.10.10
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

我安装的时候,打第二个命令行,出现 [working 0%] 我就强制 stop
然后再次打sudo apt-get install -y nodejs 就说我要手动配置 我跟着打就ok啦
安装成功的话
node -v 出现 v6.10.3
npm -v 出现 3.10.10

  1. 最新的版本8.0
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

相关文章

网友评论

      本文标题:Ubuntu安装Node.js

      本文链接:https://www.haomeiwen.com/subject/islpfxtx.html