-
Notifications
You must be signed in to change notification settings - Fork 299
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
zsh: command not found "npm" #1065
Comments
Hmm, this sounded like a typical shell env issue. Usually fixed by restarting with a login shell... Do you happen to have |
I have these configuration.
but always I open my vscode I got this issue. |
Where do you set the PATH? zsh has different setup files between login and interactive shells... if the env is set in the interactive shell mode (zshrc) then even using login shell will not source it. While you can try to make the shell login and interactive (by passing |
If anyone gets this error in 2024, this fixed it:
It seems like this value defaults to null now. And then the extension tries to use bash, which is wrong. |
Environment
vscode-jest version
: 6.0.1node -v
: 18.12.1npm -v
oryarn --version
: 8.19.2npm ls jest
: [email protected]Prerequisite
npm run test
ornode_modules/.bin/jest
)npm run test
Steps to Reproduce
Just create a minimal project and add Jest and the vscode-jest extension and I got an error.
If I run
code .
inside a terminal, the extension works fine.Expected Behavior
Run vscode extension
Actual Behavior
The text was updated successfully, but these errors were encountered: