PHP Laravel NGINX Symfony Dubbo Bootstrap Python Symfony Apache Protobuf linux Spring Django ASP Thrift Slim Typescript Docker Homestead MySQL Redis Git SVN ssh Root vim java scala sass less PHP Avro android html Golang Vue Angular React NGINX kotlin Rust Javascript

node.js/npm各版本安装方法

原创

原创不易 ~ 喜欢请点我关注

Node.js v10.x

Ubuntu及类似系统:

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

Debian使用root账户

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

RHEL / CentOS / CloudLinux / Fedora系统使用root账户

$ curl -sL https://rpm.nodesource.com/setup_10.x | bash -

Node.js v8.x

Ubuntu及类似系统:

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

Debian使用root账户

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

RHEL / CentOS / CloudLinux / Fedora系统使用root账户

$ curl -sL https://rpm.nodesource.com/setup_8.x | bash -

Node.js v6.x

Ubuntu及类似系统:

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

Debian使用root账户

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

RHEL / CentOS / CloudLinux / Fedora系统使用root账户

$ curl -sL https://rpm.nodesource.com/setup_6.x | bash -

可选:安装 build tools

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

Ubuntu下请使用sudo命令,Debian下请使用root账户:

$ apt-get install -y build-essential

RHEL / CentOS / CloudLinux / Fedora系统使用root账户

$ yum install gcc-c++ make

# 或使用以下命令
$ yum groupinstall 'Development Tools'

参考NodeSourcegithub上的node.js发布页:

https://github.com/nodesource/distributions


正在加载验证码......
请先完成验证