安装nodejs步骤

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36520153/article/details/79423879

一:安装Nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
二:用Nvm安装Node.js
nvm install 5.1.0
nvm alias default 5.1.0
三:安装使用CNpm
npm install -g cnpm –registry=https://registry.npm.taobao.org
四:查看版本信息
nvm -v
node -v
npm -v

猜你喜欢

转载自blog.csdn.net/qq_36520153/article/details/79423879