npm not working after clearing cache
This worked for me:
npm cache clean --force
It should be
npm cache clean
See https://docs.npmjs.com/cli/cache.html
"As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use
npm cache verify
instead."
try this one
npm cache clean --force
after that run
npm cache verify
Try npm cache clean --force
if it doesn't work then manually delete %appdata%\npm-cache folder.
and install npm install npm@latest -g
It worked for me.
visit this link