Using npm with an HTTP proxy

npm config set proxy http://proxy:8899
npm config set https-proxy http://proxy:8899

The npm config set and get commands are just a convenient way of editing the configuration file, though. You can just as well set it in plain text:

$ cat ~/.npmrc
proxy=http://proxy:8899/
https-proxy=http://proxy:8899

~ /home 🏠 ~ talks 💬 ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv 🧙 ~

Licensed under CC BY Creative Commons License ~ 📡 RSS feed ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ 🎥 youtube.com/@skybert