Is it safe to delete npx cache?

~/.npm/_npx · Safe to delete

What it is

Packages npx downloaded to run one-off commands.

Can you delete it?

Yes, it is rebuilt automatically. npx downloads them again the next time you run that command.

How to clean it safely

  1. Delete the folder's contents.

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/".npm/_npx" 2>/dev/null

Step-by-step guide: Delete node_modules safely →

Questions

Is it safe to delete ~/.npm/_npx?

Yes, it is rebuilt automatically. npx downloads them again the next time you run that command.

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 to download, no account, no ads.

Download for Mac