This solved it for me:
Open Windows Powershell as admin
npm cache clean --force
npm install -g @angular/cli
More Related Contents:
- How to solve npm error “npm ERR! code ELIFECYCLE”
- Why does “npm install” rewrite package-lock.json?
- Angular2 QuickStart npm start is not working correctly
- Angular 6 many Can’t resolve errors (crypto, fs, http, https, net, path, stream, tls, zlib)
- error: This is probably not a problem with npm. There is likely additional logging output above
- npm install error – unable to get local issuer certificate
- npm ERR! Error: connect ECONNREFUSED when trying to update the npm
- npm install – javascript heap out of memory
- npm: When to use `–force` and `–legacy-peer-deps`
- npm install shows error with git not found
- Message “the term ‘ng’ is not recognized as the name of a cmdlet”
- Npm install gives warnings, npm audit fix not working
- Cannot uninstall angular-cli
- npm ERR! git dep preparation failed when trying to install package.json
- What could cause an error related to npm not being able to find a file? No contents in my node_modules subfolder. Why is that?
- Is there a way to make npm install (the command) to work behind proxy?
- How to use executables from a package installed locally in node_modules?
- How can I specify the required Node.js version in package.json?
- NPM behind NTLM proxy
- npm can’t find package.json
- Module not found: Error can’t resolve ‘child_process’, how to fix?
- Is there any way to configure multiple registries in a single npmrc file
- How can I publish an npm package with distribution files?
- How to fix npm vulnerabilities manually?
- npm install -g less does not work: EACCES: permission denied
- Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
- npm: Why is a version “0.1” invalid?
- npm doesn’t work, get always this error -> Error: Cannot find module ‘are-we-there-yet’
- Can’t install any package with node npm
- Getting 404 when attempting to publish new package to NPM