I want to change NodeJS version from 4.5.0 to 7.7.2 for VS Code specifically for different projects. I am using nvm on Mac, and I have two versions stated above. They are for di
After VS Code 1.21, there is a better solution than the original answer.
You can set "runtimeVersion": "7.7.2"
and if you have nvm/nvs installed, it will be able to find that version of Node. Details: https://code.visualstudio.com/updates/v1_21#_node-debugging
--- Original answer ---
In your launch config, you can set a path to a Node executable from nvm like this: "runtimeExecutable": "/Users/me/.nvm/versions/node/v7.7.1/bin/node"