isaacs / rimraf

A `rm -rf` util for nodejs
ISC License
5.66k stars 252 forks source link

sh: rimraf: command not found (after Big Sur upgrade) #225

Closed mesqueeb closed 3 years ago

mesqueeb commented 3 years ago

I'm getting

sh: rimraf: command not found

It started appearing after upgrading to macOS Big Sur (intel based macbook). It worked before on Catalina. Nothing changed to the project structure itself. So I'm not sure what the issue is. : )

rimraf is being used in a script like so:

"dep:reinstall-all": "rimraf node_modules && npm i",

Any advice much appreciated!

mesqueeb commented 3 years ago

I fixed it by rm -rf node_modules/ && rm -rf package-lock.json && npm i