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包

本文只发表于博客园和tonglin0325的博客,作者:tonglin0325,转载请注明原文链接:https://www.cnblogs.com/tonglin0325/p/11697959.html

浙公网安备 33010602011771号