使用verdaccio搭建公司私有仓库

安装

1
npm install -g verdaccio

启动服务

1
2
3
$> verdaccio
warn --- config file - /home/.config/verdaccio/config.yaml
warn --- http address - http://localhost:4873/ - verdaccio/3.0.0

发布包

1
2
3
4
npm adduser --registry http://localhost:4873
//输入注册账号名,可以在web端登录

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

删除包

删除需要找到安装目录的指定的文件夹,直接删除目录即可

1
C:\Users\evi.wang\AppData\Roaming\verdaccio\storage

参考链接