shelljs / shelljs/shx

rm rf The system cannot find the path specified.

Open
#191 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

fix needs-feedback Windows
Dominant language
JavaScript
Stars
1.9k
Forks
51
Avg merge
3d 2h
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the package.json clean script, shx rm -rf node_modules, on Windows 10 and inspect the invocation shown in the report. Confirm the cause of the “path specified” error and establish the expected clean-command behavior; the issue names no test or target file.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.