Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it safe to remove npm-cache folder in windows?

npm cache clean -f is not able to clear the npm_cache folder located at the path C:\Users\jerry\AppData\Roaming\npm-cache. Though it clears some of the files in this folder.

Output of command: npm WARN I sure hope you know what you are doing.

However, Node.js page says clean command will delete all data out of the cache folder.

So, why is it not happening? Would it be okay if I manually delete the folder?

I'm on Windows 10 with node 8.7.0

like image 555
GorvGoyl Avatar asked Nov 02 '17 18:11

GorvGoyl


2 Answers

Yes it is safe, I have deleted npm and npm-cache folder manually and reinstall node its working fine.

like image 194
Subhajit Das Avatar answered Sep 20 '22 20:09

Subhajit Das


for Window 7 8 10 user

Run this:

md C:\npm-cache 

And then:

npm config set cache C:\npm-cache 

Its Working For me

like image 36
MzkZeeshan Avatar answered Sep 20 '22 20:09

MzkZeeshan