Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.05 KB

npm-proxy-cache.md

File metadata and controls

32 lines (23 loc) · 1.05 KB

npm proxy cache

docker run -tid --restart=always --name=npm-proxy-cache --net=host -p 8080:8080 -t npm-proxy-cache --port 8080 --host 0.0.0.0 --expired --ttl=2592000
  • set environments for local development
npm config set proxy http://localhost:8080/
npm config set https-proxy http://localhost:8080/
npm config set strict-ssl false
ENV NPM_CONFIG_STRICT_SSL=false
ENV HTTP_PROXY=http://10.10.0.200:8080
ENV HTTPS_PROXY=http://10.10.0.200:8080

replacing 10.10.0.200 with your dev workstation ip

  • log npm registry activity
docker logs --follow --tail 10 npm-proxy-cache