PHP Laravel NGINX html css Bootstrap Python Symfony Apache Windows linux jquery Django ASP vanilla Slim vagrant docker Homestead MySQL Redis Git SVN ssh Root vim PhpStorm Pycharm sass less PHP Laravel android html css Vue Angular React NGINX html css 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


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