CaptSaltyJack
CaptSaltyJack

Reputation: 16035

Why does npm leave a mess in my home folder?

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

Answers (1)

josh3736
josh3736

Reputation: 144912

It's a cache. It makes installing things quicker.

If you want to empty it run:

npm cache clean

Upvotes: 1

Related Questions