set npm proxy globally code example
Example: setting proxy in npm
npm config set proxy http://username:password@host:port
npm config set https-proxy http://username:password@host:port
npm config set proxy http://username:password@host:port
npm config set https-proxy http://username:password@host:port