CentOs7 安装 nodejs

来源:互联网 发布:阿里云备案拍照怎么拍 编辑:程序博客网 时间:2024/05/17 22:56

官网安装步骤:

node.js 6

curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -

Alternatively for Node.js 8:

curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -

Then install:

sudo yum -y install nodejs

Optional: install build tools

To compile and install native addons from npm you may also need to install build tools:

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

原创粉丝点击