美文网首页
npm 命令指定安装源

npm 命令指定安装源

作者: IamaStupid | 来源:发表于2020-07-03 17:42 被阅读0次

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

相关文章

网友评论

      本文标题:npm 命令指定安装源

      本文链接:https://www.haomeiwen.com/subject/loxeqktx.html