nodejs版本更新模块n和切换源模块nrm

The module n makes version-management easy:

sudo npm install n -g

For the latest stable version:

sudo n stable

安装nrm

npm i nrm -g

查看内置的几个 npm 源的地址

nrm ls

切换到 cnpm:

nrm use cnpm
nrm ls