安装nodejs
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
sudo yum -y install nodejs
安装完后nodejs,我们来用cnpm替换npm,因为国内的npm太慢了,所以改用阿里的cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
安装nodejs
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
sudo yum -y install nodejs
安装完后nodejs,我们来用cnpm替换npm,因为国内的npm太慢了,所以改用阿里的cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
转载于:https://my.oschina.net/u/3628952/blog/3049850