1

hey i was installing angular and waiting 11 hours and then internet slow down and i got an error

npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/resolve/-/resolve- 
1.8.1.tgz failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org 
registry.npmjs.org:443 
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\lenovo\AppData\Roaming\npm-cache\_logs\2018-07- 
06T21_01_53_610Z-debug.log

what should i do??How to complete the installation successfully?

2
  • Can you also share the commands you are using to install angular? Commented Jul 7, 2018 at 5:52
  • npm install -g @angular/cli Commented Jul 7, 2018 at 7:33

1 Answer 1

1

Update node and npm

Run PowerShell as Administrator

npm install -g npm-windows-upgrade
npm-windows-upgrade

Then try angular cli

npm install -g @angular/cli
Sign up to request clarification or add additional context in comments.

1 Comment

Now internet is good .. but how to complete the installation successuffuly?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.