Reputation: 16035
I noticed that when I install packages, even globally, they and their dependencies get put in ~/.npm
and are never removed even after uninstalling packages where the dependencies are no longer needed. Why is this? What's the purpose of the ~/.npm
folder and how do I clean it up?
Upvotes: 0
Views: 239
Reputation: 144912
It's a cache. It makes installing things quicker.
If you want to empty it run:
npm cache clean
Upvotes: 1