nodejs 二进制快速安装

参考网址: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 二进制快速安装)