nexus 2.xxx安装
- 配置代理远程仓库:
https://registry.npm.taobao.org/
image.png -
新建私服仓库
image.png -
合并私服仓库
image.png
使用私有仓库
npm config set registry http://120.26.46.164:8081/nexus/content/groups/npm-group/
vim ~/.npmrc
image.png安装成功
liurongmingdeMacBook-Air:MeiTuan liurongming$ npm install
⸨ ░░░░░░░░░░░░░░⸩ ⠋ fetchMetadata: sill mapToRegistry uri http://120.26.46.164:8081/nexus/content/groups/npm-group/xpipe
查看一下 是否从本地服务器中下载
npm -loglevel info install grunt
image.png
查看是否走依赖代理
npm --loglevel info install gulp-sass
网友评论