Is it possible for VS Code to use node version specified by NVM?
I have 6.9.2 installed locally. Even after switching to another version, from the OS X terminal (no
Some of the answers provided are correct and upvoted, but somewhat incomplete. This procedure worked for me:
node -v. You'll get for instance v10.12.0.nvm use v12.14.0)Cmd+ Shift + p and choose Preferences > Open Settings (JSON)"terminal.integrated.shellArgs.osx": [] to your user configCmd+ Shift + p and choose Shell Command: Install 'code' command in PATHcode. This will open VS Code with a new and updated bash / zsh session.node -v. You'll get v12.14.0.Bonus: If you always want to get a particular node version on VS Code's terminal, set it as default by opening a terminal window outside VS Code and running:
nvm alias default v12.14.0