Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode 0.3 can't find runtime 'node' on path

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.

like image 480
Jim Argeropoulos Avatar asked Jun 26 '15 14:06

Jim Argeropoulos


2 Answers

NODE PATH FOR VSCODE VERSION 0.7.0


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.

like image 60
GJSmith3rd Avatar answered Sep 17 '22 18:09

GJSmith3rd


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

like image 35
BehrouzMoslem Avatar answered Sep 21 '22 18:09

BehrouzMoslem