Sign inSign up

folha/npm-mirror

By folha

•Updated about 6 years ago

NPM mirror

Image
0

2.8K

folha/npm-mirror repository overview

⁠🐳 local-npm

Use the following command to pull the latest image and run it (recommended method of installation):

docker run -d \
	-v "$PWD/data":/data \
	-p 5080:5080 \
	-p 16984:16984 \
	-e BASE_URL='http://registry:5080' \
	folha/npm-mirror:1.1

Then configure npm to use your shine new local npm registry with the following command:

npm set registry http://registry:5080

Use the following command to switch back to the old default registry:

npm set registry https://registry.npmjs.org

Tag summary

Content type

Image

Digest

Size

287.8 MB

Last updated

about 9 years ago

docker pull folha/npm-mirror