microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.93k stars 29.52k forks source link

Add nvm support #150938

Open karlvr opened 2 years ago

karlvr commented 2 years ago

We use nvm to manage versions of node, and .nvmrc files in our project to ensure we use the right version in each project. When VS Code launches npm scripts, it doesn't respect our .nvmrc files, instead preferring the node binary on the PATH when VS Code was launched.

142607 is a related issue, but did not result in support for .nvmrc files.

(PR incoming)

mkpaz commented 1 year ago

Bump. It would be a good addition. Configurations support runtimeVersion property whereas tasks have nothing.

ceafive commented 1 year ago

Can someone have a look at this. We need support for nvm. @meganrogge @alexr00 @Tyriar

segevfiner commented 5 months ago

Would be cool to also add support for runtimeVersion to use the version from nvmrc, possibly even setting that as a default when unset.