1 NodeJS 安装

1 windws

下载地址 https://nodejs.org/en/download/ next next 安装

2 Mac

先安装一个 nvm(https://github.com/creationix/nvm
curl -o- https://raw.githubusercontent.com/creationix/vm/v0.25.2/install.sh | bash

检查nvm

nvm
安装 Node.js
nvm install 0.12
nvm install node

安装完成后,查看一下

node -v

3 centos

Run as root on RHEL, CentOS or Fedora, for Node.js v4 LTS Argon:

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

Alternatively for Node.js v6:

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

Alternatively for Node.js 0.10:

curl --silent --location https://rpm.nodesource.com/setup | bash -

Then install, as root:

yum -y install nodejs

就这样,不能再简单。

results matching ""

    No results matching ""