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.
- Host: GitHub
- URL: https://github.com/hojas/private-npm-registry
- Owner: hojas
- License: mit
- Created: 2022-11-18T04:06:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-06T08:09:58.000Z (over 2 years ago)
- Last Synced: 2025-02-01T20:11:24.479Z (8 months ago)
- Topics: npm, registry, verdaccio
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)