Reputation: 482
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?
Upvotes: 11
Views: 21533
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
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