Skip to content

https://verdaccio.org/

https://github.com/verdaccio/verdaccio

安装

shell
npm install -g verdaccio

# 启动
$ verdaccio
shell
yarn global add verdaccio

# 启动
$ verdaccio

docker

terminal
bash
$ docker pull verdaccio/verdaccio

# 启动
$ docker run --name verdaccio-test -p 4873:4873 -d verdaccio/verdaccio

启动

image.png

用户

terminal
bash
# 添加
$ npm adduser --registry http://localhost:4873/

# 登录
$ npm login --registry http://localhost:4873/

image.png

发布

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

image.png

image.png

删除

terminal
bash
$ npm unpublish --force react-components --registry http://localhost:4873/

# 删除v1.0.1版本
$ npm unpublish react-components@1.0.1

image.png

以上私服npm完成