2
respostas

Problema na instalação de angular CLI

C:\Users\Fluttershy\Documents\api-windows>npm install -g @angular/cli@6.0.7
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/@angular%2fcli failed, reason: getaddrinfo ENOTFOUND proxy.company.com proxy.company.com:8080
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\Fluttershy\AppData\Roaming\npm-cache\_logs\2018-11-26T22_17_57_668Z-debug.log

Também já tentei usar npm install -g @angular/cli@latest e apenas npm install -g @angular/cli

2 respostas

Boa noite, Lívia! Como vai?

Vc está utilizando algum proxy pra acessar a internet?

No momento não, mas já tentei usar npm config set proxy http://proxy.company.com:8080 e npm config set https-proxy http://proxy.company.com:8080 mas continua dando erro