Ng update @angular/cli Error: connect ECONNREFUSED
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
Have you tried:
npm uninstall --save-dev @angular/cli
npm install --save-dev @angular/cli@latest
?
It was just an error from our Proxy. Im closing this issue.
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
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.