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'
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容