私有npm搭建 verdaccio

安装命令:

npm install --global verdaccio

安装完成后直接运行:

verdaccio

此服务会默认运行在 http://localhost:4873/

启动服务后需要  创建用户并登录  这里会让你输入  用户名 密码

npm adduser --registry http://localhost:4873

然后你就可以发布你的所有组件库了

npm publish --registry http://localhost:4873/

执行代码 yarn build:pub 发布到私有的组件仓库

猜你喜欢

转载自blog.csdn.net/rebooting_now/article/details/121271441