现在公司内外配置nexus, 前端开发尽量使用公司私服, 减少构建时间。

npm install -g cnpm --registry=https://registry.npmmirror.com
npm config set registry https://registry.npmmirror.com
cnpm config set registry https://registry.npmmirror.com

npm install -g cnpm --registry=http://192.168.7.52:8081/repository/npm-group/
npm config set registry http://192.168.7.52:8081/repository/npm-group/
cnpm config set registry http://192.168.7.52:8081/repository/npm-group/

npm install -g cnpm --registry=https://registry.npmmirror.com
npm config set registry https://registry.npmmirror.com
cnpm config set registry https://registry.npmmirror.com
npm config get registry
cnpm config get registry

posted on 2022-06-06 18:01  肖建锋  阅读(319)  评论(0编辑  收藏  举报