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

Unable to find 'node' executable #525

Closed
budarin opened this issue Nov 8, 2024 · 6 comments
Closed

Unable to find 'node' executable #525

budarin opened this issue Nov 8, 2024 · 6 comments

Comments

@budarin
Copy link

budarin commented Nov 8, 2024

Describe the bug

I am using nvm to install nodejs. I get this error while opening VS Code.

Why don't you use the where node command, which gives the correct path to the executable file node.exe?

Reproduction

no link

Output

[INFO 3:04:37 PM] [v1.6.6] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[Error 3:04:39 PM] Unable to find 'node' executable.
Make sure to have Node.js installed and available in your PATH.
....


### Version

v1.6.6

### Validations

- [X] Check that you are using the latest version of the extension
- [X] Check that there isn't [already an issue](https://github.com/vitest-dev/vscode/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitest-dev/vscode/discussions) or join our [Discord Chat Server](https://chat.vitest.dev).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
@philsherry
Copy link

I’ve started running into this as well. I’m using asdf for my node install and it’s at the front of my $PATH.
(The Brew’d node is a dependency for other things.)

Here’s the output from my VS Code CLI after the error had shown, and once all extensions had loaded:

❯ where node
/Users/philsherry/.local/share/asdf/shims/node
/opt/homebrew/bin/node
❯ which node
/Users/philsherry/.local/share/asdf/shims/node
❯ which -a node
/Users/philsherry/.local/share/asdf/shims/node
/opt/homebrew/bin/node
❯ command -v node
/Users/philsherry/.local/share/asdf/shims/node

@sheremet-va
Copy link
Member

Can you check if 1.9.0 works for you?

@budarin
Copy link
Author

budarin commented Jan 10, 2025

Can you check if 1.9.0 works for you?

This version is not listed in the list of available versions.
Current version 1.8.5

@sheremet-va
Copy link
Member

Can you check if 1.9.0 works for you?

This version is not listed in the list of available versions. Current version 1.8.5

It is listed for me. Enable pre-release versions to see it.

@budarin
Copy link
Author

budarin commented Jan 10, 2025

Can you check if 1.9.0 works for you?

This version is not listed in the list of available versions. Current version 1.8.5

It is listed for me. Enable pre-release versions to see it.

I confirm that version 1.9.0 works without specifying the path to the node executable in the extension configuration.

@sheremet-va
Copy link
Member

This should be fixed in 1.10.0 automatically.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants