1 安装命令

npm install -g cnpm --registry=https://registry.npm.taobao.org

2 修改源

npm config set registry https://registry.npm.taobao.org

#查看源
npm config get registry