I just upgraded from 0.1 of vscode to 0.3. Now I'm getting an error when I run the debugger "can't find runtime 'node' on path". I have iojs v2.3.0 running on OSX 10.10.3. I installed iojs using nvm, so it is possible that node is not in the path, but I can type "node" in terminal and get a repl.
I'm running Ubuntu GNU/Linux 12.04.5 LTS. Before VSCode 0.7.0 I would leave my node path to the default found on the PATH in the launch.json file:
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
"runtimeExecutable": null,
However, after the update to 0.7.0, I started receiving 'can't find runtime on "node" PATH'
errors even though node was on my PATH.
18:25:37 ツ gjsmith3rd@DV7:~
$echo $PATH
/usr/bin:...//Plus the rest of the PATH
18:25:44 ツ gjsmith3rd@DV7:~
18:21:36 ツ gjsmith3rd@DV7:~
$which node
/usr/bin/node
18:21:43 ツ gjsmith3rd@DV7:~
I changed my launch.json to:
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
"runtimeExecutable": "/user/bin/node",
Now all is working fine. The actual path is /usr/bin/
and the executable is node
.
To solve this problem, please restart your computer .. is likely to be solved. I have a similar problem, my problem was solved by restarting the operating system. https://stackoverflow.com/a/38414254/4746570
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With