I am executing following command on Windows:
npm install -g create-react-app
However I am getting following error:
npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to http://registry.npmjs.org/create-react-app failed, reason: connect ETIMEDOUT 104.16.20.35:80 npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\faizanmubasher\AppData\Roaming\npm-cache_logs\2019-02-20T13_22_23_493Z-debug.log
Though I have properly set the proxy configurations:
npm config set http-proxy username:password@proxyip:port -g
npm config set proxy username:password@proxyip:port -g
npm config set https-proxy username:password@proxyip:port -g
Also tried this:
npm --proxy username:password@proxyip:port\ install -g create-react-app
- Is there a way to make npm install (the command) to work behind proxy?
- NPM Behind A Proxy Server
- How to use NPM Install (The Command) behind Corporate Proxy Server
I am behind corporate proxy.