npm 命令指定安装源
npm install -g cnpm --registry=https://registry.npm.taobao.org
// 公司的安装源
npm install -g cnpm --registry=https://maven.xxx.com.cn/repository/npmjs/
使用临时安装源
npm install highcharts --save --registry=https://maven.xxx.com.cn/repository/npmjs/
npm 源配置
// 查询当前源配置
npm get registry
// 设置修改配置
npm config set registry https://registry.npmjs.org
网友评论