打开终端 :
npm install -g cnpm --registry=https://registry.npm.taobao.org
官方源:
默认源
npm config set registry https://registry.npmjs.org
换源:
npm config set registry https://registry.npm.taobao.org
配置后通过以下方法验证是否成功:
npm config get registry
打开终端 :
npm install -g cnpm --registry=https://registry.npm.taobao.org
官方源:
npm config set registry https://registry.npmjs.org
换源:
npm config set registry https://registry.npm.taobao.org
配置后通过以下方法验证是否成功:
npm config get registry