Is safe to delete .cache folder in node_modules?

Viewed 9451

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

2 Answers

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)

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

Related