1.创建npm仓库

私服仓库npm-hosted

Nexus上传npm包

 

 代理仓库npm-proxy

Nexus上传npm包

 

 npm-group

Nexus上传npm包

创建成功

Nexus上传npm包

 在工程的根目录下创建文件 .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包

Nexus上传npm包

 

 



相关文章: