Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error during Angular-cli installation using npm

Tags:

When I try to install Angular-cli using npm I get err with code ETIMEDOUT

I tried to remove proxy (proxy & HTTP-proxy), tried to run cmd in admin mode, changed the path to nodejs destination

npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/@angular%2fcli failed, reason: connect ETIMEDOUT 104.16.22.35: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\123\AppData\Roaming\npm-cache\_logs\2019-02-04T09_5I_06_689Z-debug.log

It doesn't matter what I tried but have same error everytime. Need help guys

like image 576
svennnx3 Avatar asked Feb 04 '19 09:02

svennnx3


People also ask

Will npm install install angular cli?

js Installer. NPM is one of the prerequisites you require before installing Angular CLI. Angular will need to have Node. js in your system for it to run (the 8.

How do you fix error this command is not available when running the angular cli outside a workspace?

To Fix Error “This command is not available when running the Angular CLI outside a workspace Error”, Do Right-Click on yours project name in VS Code and Click “Open in Integrated Terminal” Option. It would open the project to your terminal and error would be fixed.


1 Answers

In most cases you are behind a proxy or have bad network settings. First, run npm config list and check whether you are behind a proxy. If so, try running

npm config delete proxy
npm config delete http-proxy
npm config delete https-proxy
like image 137
Jánosi-Borsos Róbert Avatar answered Oct 19 '22 11:10

Jánosi-Borsos Róbert