-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Process failed: spawn /bin/sh ENOENT #883
Comments
Same thing here with Node 16.15.1, VS Code 1.68.1 and Jest extension 4.6.0 running on Apple Silicon M2. |
@Quinn1876 @ocolot can you guys turn on debug mode and post the spawned command line from the developer console? |
|
I am also getting the same error. The error persists even though I set it to jest.shell |
I could remember setting the shell to Fish in jest.shell didn't help. To sum up, try
Tried to reproduce it again this issue but I probably dit set some setting different and now It keeps working even without opening it through the shell. |
I had a similar issue and was able to solve it by removing a mis-configured |
DescriptionHello everyone, I had a similar error: "spawn /bin/sh ENOENT" and I solved it as follows: I ran the command: bash npm config list I noticed that it had the directory Command: npm config delete script-shell |
Environment
vscode-jest version
: v4.6.0node -v
: v17.7.1npm -v
oryarn --version
: 8.12.2npm ls jest
ornpm ls react-scripts
(if you haven’t ejected):└─┬ react-scripts@5.0.1
├─┬ jest-watch-typeahead@1.1.0
│ └── jest@27.5.1 deduped
└── jest@27.5.1
Prerequisite
npm run test
Steps to Reproduce
Install Jest Extension
Get error :
Jest Session Started
Process failed: spawn /bin/sh ENOENT
Process failed: spawn /bin/sh ENOENT
Jest process "watch-tests" ended unexpectedly
Expected Behavior
Should be able to run jest tests
Actual Behavior
Process Fails
Jest Session Started
Process failed: spawn /bin/sh ENOENT
Process failed: spawn /bin/sh ENOENT
Jest process "watch-tests" ended unexpectedly
The fastest (and the most fun) way to resolve the issue is to submit a pull-request yourself. If you are interested, feel free to check out the contribution guide, we look forward to seeing your PR...
The text was updated successfully, but these errors were encountered: