shelljs / shx

Portable Shell Commands for Node
MIT License
1.72k stars 44 forks source link

rm rf The system cannot find the path specified. #191

Open gabifuse opened 3 years ago

gabifuse commented 3 years ago

Hello!

Im trying to run the following script in my packacge.json:

"clean": "shx rm -rf node_modules",

yet when i run it i run into the following error:

shx rm -rf ./node_modules

The system cannot find the path specified. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @fuse/typeorm@0.0.24 clean: shx rm -rf ./node_modules npm ERR! Exit status

The operating system is windows 10. What might be the issue?

Thanks in advance, Gabi.

nfischer commented 2 years ago

Where does the ./ come from? Your package.json doesn't show a ./ before the path. Was that a typo or is that being added at runtime (perhaps by npm)?