Not able to install @angular/cli using npm
Solution 1:
My friend,
Please try: npm cache clean --force
. Maybe your npm cache got confused.
Solution 2:
It could be issue with your node version. I will suggest you to reinstall node and try it again.
Or you can also try to clean node cache of using npm cache clean --force
Solution 3:
List of Npm registry
- https://registry.npmjs.org/ (Dfault One)
- https://r.cnpmjs.org/
- https://registry.npm.taobao.org/
- https://registry.nodejitsu.com/
- https://skimdb.npmjs.com/registry
To switch just type
npm config set registry "https://registry.npmjs.org/"
Replace the registry url with the above urls check which one works for you.
I am from india so i used https://r.cnpmjs.org/
and the same error got resolved.
Note: Please use npm cache clear
(To clear cache ) and npm cache verify
(To verify its clear or not), This Method works for me