Spin up your own NPM registry on a docker container with caching that proxies to npmjs with minimal configuration.
make start
ormake
to start the registry in the background on a docker container.make backup
to perform a backup that produces a backup.tar file.make restore
to start the registry with the backup file.
docker logs npm-registry
. See options with--help
.
- You can modify config.yaml directly without restarting the registry. See docs for customization options.
- To modify the registry port, change the value in .envrc.
To use your NPM registry, you can do one of the following:
- Add the line
registry = http://${npm-registry-ip}:4000/
to your .npmrc file. Or, - Run
npm set registry http://${npm-registry-ip}:4000/
in your project.