1.创建npm仓库
私服仓库npm-hosted

代理仓库npm-proxy

npm-group

创建成功

在工程的根目录下创建文件 .npmrc
1 | registry=http://xxx:8081/nexus/repository/npm-group/ |
然后安装react
1 | npm --loglevel info install react |
或者
1 | npm install --registry=http://xxx:8081/nexus/repository/npm-group/ |
仓库上将会下载这个npm包
