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包

