-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
consider to support "nvm" in node-debug extension #25386
Comments
I like the idea; would it be possible to pull the version from an |
Would probably be best to have something like |
@nijikokun I do not really see the value of |
n is another common node version manager. |
@roblourens A first cut of this feature will be available in the next Insiders. As an example here is the launch config for the "legacy" version of the cluster feature:
And here the output (which shows that node from the nvm folder is used despite the fact that node 8.9.1 is my default version): Most of the implementation lives in the shared extension code and just massages the launch config. However, I had to make one change in node-debug (and you might want to do the same in node-debug2). |
Great! I pushed the same fix. |
Many users are managing their installed node versions via "nvm".
But it seems to be difficult to make VS Code use the node version installed by "nvm".
To simplify this we could directly support "nvm" in node-debug launch configurations e.g. by adding an optional "nvm" attribute that takes a version specifier:
(for lengthy discussion see see #1895)
Opinions?
The text was updated successfully, but these errors were encountered: