Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'npm cache clean' not working angular VS Code as IDE

npm ERR! 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. npm ERR! npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\janak\AppData\Roaming\npm-cache_logs\2017-08-11T04_38_31_995Z-debug.log

like image 903
Chanaka Amarasinghe Avatar asked Aug 11 '17 05:08

Chanaka Amarasinghe


People also ask

How do I force npm to clear cache?

Run: “npm cache clean –force” This will force delete the npm cache on your computer.

Does Vscode have cache?

The VS Code cache is located in your user folder.


2 Answers

Run the command with --force:

npm cache clean --force

Based on npm documentation:

it should never be necessary to clear the cache for any reason other than reclaiming disk space, thus why clean now requires --force to run.

like image 75
A-Sharabiani Avatar answered Sep 20 '22 15:09

A-Sharabiani


Try deleting your node_modules folder inside your project, and then run npm install again.

like image 34
Stephen R. Smith Avatar answered Sep 20 '22 15:09

Stephen R. Smith