1、安装nodejs
yum install -y nodejs
2、安装cnpm
安装完node之后,npm包含的很多依赖包是部署在国外的,下载速度超级慢。所以最好安装cnpm。
cnpm:是淘宝对npm的镜像服务器。
cnpm安装命令
npm install -g cnpm --registry=https://registry.npm.taobao.org
1、安装nodejs
yum install -y nodejs
2、安装cnpm
安装完node之后,npm包含的很多依赖包是部署在国外的,下载速度超级慢。所以最好安装cnpm。
cnpm:是淘宝对npm的镜像服务器。
cnpm安装命令
npm install -g cnpm --registry=https://registry.npm.taobao.org