Using the command prompt, I am trying to install angular CLI and it fails. I have npm version 5.5.1 and node version v8.9.1. I am trying to install angular cli using the com
the only command line "npm -g install npm" solved the issue for me! the following link can be helpful to dig deep for a better understanding. Thanks a lot.
It was giving the same error for me when I use office network/vpn as they have 'umbrella' DNS security shield. To solve this issue, connect to personal network and type the below commands:
npm config set registry http://registry.npmjs.org
npm install -g @angular/cli
It is an network error , check your network connection and try to install it again.
Alternative, another option to avoid 404 npm error
check if your terminal is in the root directory, if not your npm scripts will not execute because it will not be able to see the package.json
I had same problem with a private package. Need to:
npm adduser
npm login