Is it safe to delete npm cache?

~/.npm · Safe to delete

What it is

npm's download cache of every package version you installed.

Can you delete it?

Yes, it is rebuilt automatically. npm downloads packages again when needed.

How to clean it safely

  1. Run: npm cache clean --force

Questions

Is it safe to delete ~/.npm?

Yes, it is rebuilt automatically. npm downloads packages again when needed.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free beta for Mac.

Download for Mac