JuNas
JuNas

Reputation: 482

Is safe to delete .cache folder in node_modules?

My project size reached 1.2GB, and it was caused by the .cache folder inside the npm module. Is it safe if I delete that folder?

enter image description here

Upvotes: 11

Views: 21533

Answers (2)

dany952
dany952

Reputation: 329

if it is safe to delete it, and you can recreate it when you compile or when you generate the build

Upvotes: 1

Uri Kutner
Uri Kutner

Reputation: 506

generally, it is safe to delete the node_modules folder, as it can be regenerated by the package manager.
Package versions may change during reinstall (unless you have a *.lock file)

Upvotes: 14

Related Questions