isaacs/rimraf

Rimraf is not found when running with npx

sandrocsimas opened this issue · 1 comments

Rimraf not found is returned when I run using npx.

$ npx rimraf lib
sh: 1: rimraf: not found

This only works when I have rimraf in my dev dependencies. Is this OK?

sandro@sandro:~/workspace$ npm install --save-dev rimraf

added 6 packages, and audited 607 packages in 2s

119 packages are looking for funding
  run `npm fund` for details

1 high severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
sandro@sandro:~/workspace$ npx rimraf lib
sandro@sandro:~/workspace$ 

Try running rm -r ~/.npm/_npx and it should work. There was no bin for a few versions, probably you have an outdated cache.