美文网首页
nodejs 二进制快速安装

nodejs 二进制快速安装

作者: 无至 | 来源:发表于2019-01-07 17:50 被阅读6次

参考网址:https://github.com/nodesource/distributions

1、Ubuntu下安装

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

2、Using Debian, as root下安装

curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs

3、RHEL 6 or CentOS 6 下安装

curl -sL https://rpm.nodesource.com/setup_10.x | bash -
sudo yum install -y nodejs

要从npm编译和安装本机插件,您可能还需要安装构建工具:

yum install gcc-c++ make
# or: yum groupinstall 'Development Tools'

相关文章

网友评论

      本文标题:nodejs 二进制快速安装

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