shx icon indicating copy to clipboard operation
shx copied to clipboard

rm rf The system cannot find the path specified.

Open gabifuse opened this issue 4 years ago • 1 comments

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/[email protected] 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.

gabifuse avatar Sep 20 '21 11:09 gabifuse

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)?

nfischer avatar Nov 29 '21 02:11 nfischer