Unable to install Angular CLI using node.js command prompt

I am unable to install Angular CLI on Windows.

I have tried the following:

C:\Users\username>node -v
C:\Users\username> npm -v

C:\Users\username>npm install -g @angular/cli
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/@angularMfcli failed, reason: connect ETIMEDOUT
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' 

Please tell me why it is not working and what I should do.

1 answer

  • answered 2018-07-12 07:41 Jack

    This error means your internet connection is not working.

    I would suggest you check your internet connection and try again.