On macOS (and likely Linux) it’s ~/.npm/_npx
, you can drop it with:
rm -rf ~/.npm/_npx
On Windows it should be %LocalAppData%/npm-cache/_npx
Either way, you can find npm’s cache by running npm config get cache
and then finding an npx folder in there.