npm 使用淘宝源
npm config set registry http://registry.npm.taobao.org/
修改源地址为官方源
npm config set registry https://registry.npmjs.org/
使用 cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm 使用淘宝源
npm config set registry http://registry.npm.taobao.org/
修改源地址为官方源
npm config set registry https://registry.npmjs.org/
使用 cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org