ng update error: Error: getaddrinfo ENOTFOUND
See original GitHub issueVersions
Angular CLI: 1.7.0
Node: 8.9.3
OS: win32 x64
Angular: 5.2.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cdk: 5.1.0
@angular/cli: 1.7.0
@angular/material: 5.1.0
@angular-devkit/build-optimizer: 0.3.1
@angular-devkit/core: 0.3.1
@angular-devkit/schematics: 0.3.1
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.0
@schematics/angular: 0.3.1
@schematics/package-update: 0.3.1
typescript: 2.5.3
webpack: 3.11.0
Repro steps
- Step 1 run
ng update
Observed behavior
following error is thrown
events.js:183
throw er; // Unhandled 'error' event
^
Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
at errnoException (dns.js:50:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)
Desired behavior
It should properly update the dependencies
Mention any other details that might be useful (optional)
Running this behind a corporate proxy. Does ng update
take that into consideration?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:10
- Comments:19 (3 by maintainers)
Top Results From Across the Web
ng serve error: getaddrinfo ENOTFOUND localhost
A nightly update on my MAC OS caused it. This error made no sense at first and all conditions were misleading: I ran...
Read more >Node.js Error Message “getaddrinfo ENOTFOUND localhost ...
If you try to run your JSON server and see this error message “getaddrinfo ENOTFOUND localhost,” it's happening because Webpack cannot find your...
Read more >angular/angular-cli - Gitter
I am trying to perform a ng update and it seems to fail silently without updating my package.json ... > XXX@4.127.0 ng ...
Read more >Node.js error: getaddrinfo ENOTFOUND localhost - Andrew Mok
The error getaddrinfo ENOTFOUND localhost is caused by Webpack cannot found localhost address. To solve it, open the terminal: sudo nano /etc/hosts ...
Read more >[Solved] npm ERR! ERESOLVE unable to resolve ... - YouTube
ERESOLVE unable to resolve dependency tree. ng new app. node.js ... Error messages: ⠸ Installing packages (npm)...npm ERR ! code ERESOLVE ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The issue still persists with v^6.0.0
With the latest release of Angular, we are in desperate need of
ng update
to work in our environments. Can this issue be addressed on priority?The flag should be on the update function itself 😃 We contact the npm registry directly, not passing through npm API, so there’s nowhere you can set that proxy right now.