npm 配置私服

一、
npm config set @chint:registry http://10.137.8.212:8081/repository/npm-group/
1、如果是要删除的话,用
npm config delete @chint:registry

 

 

这里的@chint就是对应的企业名称

 

 

(1条消息) nexus管理npm包,npm包发布在私有仓库(nexus)中_aSuncat的博客-CSDN博客_nexus npm

 

 

npm config get registry  获取npm的

 

默认镜像https://registry.npmjs.org

淘宝镜像http://registry.npm.taobao.org/

私服地址http://xxxx

 

#修改镜像地址

npm config set registry http://xxxx

 

npm login  --registry=http://xxxx(指定要登录镜像地址)

 

npm whoami

posted @ 2022-05-29 14:34  zlAdmin  阅读(54)  评论(0)    收藏  举报