Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continue after ENOENT: no such file or directory #305

Open
basickarl opened this issue May 10, 2024 · 3 comments
Open

Continue after ENOENT: no such file or directory #305

basickarl opened this issue May 10, 2024 · 3 comments

Comments

@basickarl
Copy link

I get this error when a directory doesn't exist that I am trying to remove. Would be good with a flag so that the command can skip this and go to the next file/directory in the list.

ENOENT: no such file or directory

@isaacs
Copy link
Owner

isaacs commented May 10, 2024

How are you getting rimraf to raise an ENOENT? That shouldn't be possible, when it encounters an ENOENT it just returns successfully. Can you share some code to reproduce it?

@basickarl
Copy link
Author

Ah, I see you have been updating the package. Something is whack:

karl ~/development/neo/needle-3 [fix-playwright-install] $ npx --yes rimraf@5.0.5 .yarn/cache
karl ~/development/neo/needle-3 [fix-playwright-install] $ npx --yes rimraf .yarn/cache 
sh: rimraf: command not found

First one works. second one crashes.

@isaacs
Copy link
Owner

isaacs commented May 13, 2024

Probably you need to update your rimraf dep. what does npm ls rimraf output?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants