setting proxy in package.json code example
Example 1: setting proxy in npm
npm config set proxy http://username:password@host:port
npm config set https-proxy http://username:password@host:port
Example 2: package json proxy
"proxy": "http://localhost:4000"