- npm install -g verdaccio # 安装 verdaccio
- verdaccio --listen http://192.168.40.11:4873 #服务启动
- 访问http://192.168.40.11:4873/
- 进入需要发布的工程,例如ep-ui
- npm adduser --registry http://192.168.40.11:4873/ #npm 账号设置 根据提示输入,例如: Username: liangshanshan Password: aaa111 Email: (this IS public) sandycoding@163.com Logged in as liangshanshan on http://192.168.40.11:4873/.
- npm publish --registry http://192.168.40.11:4873/
- 刷新http://192.168.40.11:4873/
- nrm add sanjie http://192.168.40.11:4873
- nrm use sanjie
- npm i @sandy/ep-ui
例如: ep-ui/package.json 配置项: "publishConfig": { "registry": "http://192.168.40.11:4873" }