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

Ensure node and npm are installed ... Node is installed to WSL #2348

Closed
givihuda opened this issue Aug 11, 2024 · 4 comments
Closed

Ensure node and npm are installed ... Node is installed to WSL #2348

givihuda opened this issue Aug 11, 2024 · 4 comments
Labels
bug Something isn't working tracked

Comments

@givihuda
Copy link

givihuda commented Aug 11, 2024

Environment (please complete the following information):

  • OS (e.g., Windows 10): Windows 11
  • Extension version (e.g., 1.2.3): 2.1.5

Describe the bug:

The notification "Ensure node and npm are installed to enable automatically reporting issues in source files pertaining to accessibility, compatibility, security, and more." pops up at the bottom right when I open VS Code, after installing VSCode Essentials
v1.0.5.

Node was already installed to WSL Ubuntu through Microsoft's instructions for both:
https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl

I just went right down the list up through Step 9 of "Install nvm, node.js, and npm", and installed nvm first then node LTS and the latest default. I didn't go past that. All of that worked fine. 👏

It seems that the extension however isn't understanding where Node is, probably because it's looking for a normal Windows 11 install that Node's download MSI does, like from https://nodejs.org/dist/v20.16.0/node-v20.16.0-x64.msi.

Anyway, I'm not seeing where to tell the extension to look for Node, or if it can even see it in WSL.

Repro steps:

See the steps I went through in the "Describe" part.

Expected behavior:

Um, find Node automatically, or let me tell it where to find it, or make it easy to notice. When I click the gear icon from the notification, then Manage Extension, then click its gear icon then Extension Settings, I don't see anything about telling it where to find the Node install.

Note that I'll probably need to use multiple versions of Node on this computer, though I think I wouldn't manage a reference to the version of Node in the extension... I'm not sure, I'm a bit confused on this point.

Additional context:

I'm doing through the recommendations of a video tutorial.

AB#53153443

@captainbrosset
Copy link
Collaborator

Thank you for filing.

@vidorteg do you think this is similar to #1145 or is this a new problem, related to WSL?

@captainbrosset captainbrosset added bug Something isn't working tracked labels Aug 12, 2024
@KaranocaVe
Copy link

KaranocaVe commented Aug 12, 2024

This is definitely a bug. On a computer that has just had Windows reinstalled(vscode is also brand new), I first used 'winget install OpenJS.NodeJS' to install NodeJS, and then installed this plugin, which resulted in this error.

@givihuda
Copy link
Author

Please let me know a fix or workaround. I'm not seeing how to tell the extension where Node is installed.

@vidorteg
Copy link
Contributor

Potentially fixed at the same time as #2390 feel free to reactivate if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked
Projects
None yet
Development

No branches or pull requests

4 participants