- CentOS yum
/etc/yum.conf
proxy=http://localhost:3128/
- npm
by npm command
npm config set proxy http://localhost:3128
npm config set http-proxy http://localhost:3128
npm config set https-proxy http://localhost:3128
- node-gyp
by node-gyp command
node-gyp --proxy=http://localhost:3128 configure build