VSCode 0.3无法findpath上的运行时节点

我刚刚从0.1的vscode升级到0.3。 现在,当我运行debugging器“在path上找不到运行时节点”时出现错误。 我有在OSX 10.10.3上运行的iojs v2.3.0。 我使用nvm安装iojs,所以有可能节点不在path中,但是我可以在terminalinput“node”并获得一个repl。

VSCODE版本的节点path0.7.0


我正在运行Ubuntu GNU / Linux 12.04.5 LTS。 在VSCode 0.7.0之前,我会将我的节点path保留在launch.json文件中PATH中的默认值上:

// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH. "runtimeExecutable": null, 

但是,在更新到0.7.0之后,即使节点在我的PATH上,我也开始接收'can't find runtime on "node" PATH'错误'can't find runtime on "node" 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:~ 

我把我的launch.json改为:

 // Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH. "runtimeExecutable": "/user/bin/node", 

现在一切正常。 实际path是/usr/bin/ ,可执行文件是node

这不应该与您的VSCode更新有关。 重新安装节点应该解决问题,或者明确地将节点运行时添加到PATH。

要解决这个问题,请重新启动计算机..很可能会被解决。 我有一个类似的问题,我的问题是通过重新启动操作系统解决。 https://stackoverflow.com/a/38414254/4746570