Nexus上传npm包

1.创建npm仓库

私服仓库npm-hosted

 代理仓库npm-proxy

 npm-group

创建成功

 在工程的根目录下创建文件 .npmrc

registry=http://xxx:8081/nexus/repository/npm-group/

然后安装react

npm --loglevel info install react

或者

npm install --registry=http://xxx:8081/nexus/repository/npm-group/

仓库上将会下载这个npm包



原文地址:https://www.cnblogs.com/tonglin0325/p/11697959.html