Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ng update @angular/cli Error: connect ECONNREFUSED #11386

Closed
hamzahamidi opened this issue Jun 27, 2018 · 4 comments
Closed

Ng update @angular/cli Error: connect ECONNREFUSED #11386

hamzahamidi opened this issue Jun 27, 2018 · 4 comments

Comments

@hamzahamidi
Copy link

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Area

- [ ] devkit
- [ ] schematics

Versions

I'm trying to update angular 5 project to v6. I installed first angular-cli v6. Then I run the following command:

$ ng update @angular/cli
Your global Angular CLI version (6.0.8) is greater than your local
version (1.7.4). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 104.18.94.96:80
    at Object._errnoException (util.js:992:11)
    at _exceptionWithHostPort (util.js:1014:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14)

Repro steps

1- Start from an angular v5 project
2- Install angular cli v6
3- Run the command $ ng update @angular/cli

The log given by the failure

Desired functionality

Mention any other details that might be useful

@LeoUrzua
Copy link

LeoUrzua commented Jul 3, 2018

Have you tried:

npm uninstall --save-dev @angular/cli
npm install --save-dev @angular/cli@latest

?

@hamzahamidi
Copy link
Author

It was just an error from our Proxy. Im closing this issue.

@EssieShey
Copy link

EssieShey commented Dec 18, 2018

ng update command ignore .npmrc configuration file. You need to manually set the proxy in your current session.
e.g.

set proxy=http://ip:port
set http_proxy=http://ip:port
set https_proxy=http://ip:port

Then:

npm uninstall --save-dev @angular/cli
npm install --save-dev @angular/cli@latest

OR
ng update @angular/cli

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants