Error executing the npm installl command

1

Error showing npm:

  

npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C: \ Program   Files \ nodejs \ node.exe "" C: \ Program   Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js "" install "" -g "   "@ angular / cli" npm ERR! node v6.11.4 npm ERR! npm v3.10.10 npm ERR!   code ECONNRESET

     

npm ERR! network tunneling socket could not be established,   cause = connect ECONNREFUSED 127.0.0.1:80 npm ERR! network This is most   likely not a problem with npm itself npm ERR! network and is related   to network connectivity npm ERR! network In most cases you are behind   to proxy or have bad network settings. npm ERR! network npm ERR!   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! Windows_NT 6.1.7601 npm ERR! argv "C: \ Program   Files \ nodejs \ node.exe "" C: \ Program   Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js "" install "" -g "   "@ angular / cli"

    
asked by jm p 04.11.2017 в 14:27
source

1 answer

0

The error tells you that the server is not responding. Set the proxy path to work

Try the following, in a terminal run

npm config set strict-ssl false

npm config set registry "http://registry.npmjs.org/"

npm --proxy "http://usuario:contrasenha+&{{'@servidorproxy:8080" install -g @angular/cli

Enter your username and password. And to know the IP output of your proxy, from google chrome browser:

Configuring your browser in tools > > Open proxy settings > > LAN Settings > > copy the address that throws you in proxy server

  

The default port is 8080 but within the LAN configuration   you can configure it

    
answered by 06.11.2017 в 12:31