Skip to content

Instantly share code, notes, and snippets.

@Farenheith
Last active September 2, 2024 00:51
Show Gist options
  • Save Farenheith/b79f3cc430013eb3ea0dfb011c98df93 to your computer and use it in GitHub Desktop.
Save Farenheith/b79f3cc430013eb3ea0dfb011c98df93 to your computer and use it in GitHub Desktop.
Launch.json example for vscode using nvm to get node version directly from .nvmrc
{
"version": "0.2.0",
"configurations": [{
"type": "node",
"request": "launch",
"name": "Launch program",
"skipFiles": ["<node_internals>/**"],
"cwd": "${workspaceRoot}",
"envFile": "${workspaceFolder}/.env",
"runtimeExecutable": "${env:NVM_DIR}/nvm-exec",
"args": [
"node",
"${workspaceRoot}/index.js"
],
"outputCapture": "std",
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment