临时使用
npm --registry https://registry.npm.taobao.org install [需要安装的包]
持久使用
npm config set registry https://registry.npm.taobao.org
使用 cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install
查看源
npm config get registry
nrm 切换源
npm install -g nrm
如何使用, 具体看终端提示…