An open API service indexing awesome lists of open source software.

https://github.com/hojas/private-npm-registry

Private npm registry in docker.
https://github.com/hojas/private-npm-registry

npm registry verdaccio

Last synced: 6 months ago
JSON representation

Private npm registry in docker.

Awesome Lists containing this project

README

          

# private-npm-registry

Private NPM registry created with [Verdaccio](https://github.com/verdaccio/verdaccio).

## Run

```
$ docker compose up
```

## Home page

http://localhost:4873/

## Default user

username: publisher

password: publisher

## Use

Define in your .npmrc a registry field.

`.npmrc` file:

```
registry=http://localhost:4873
```

## Publish a package

```
$ npm login --registry=http://localhost:4873
$ npm publish --registry=http://localhost:4873
```

## 参考

[Docker 搭建 Verdaccio](https://www.zhihu.com/question/484035649)