VSCode 0.3无法在路径上找到运行时'节点'

Jim*_*los 6 node.js visual-studio-code

我刚从vscode的0.1升级到0.3.现在,当我运行调试器"无法在路径上找到运行时'节点'时,我收到错误".我在OSX 10.10.3上运行了iojs v2.3.0.我使用nvm安装了iojs,因此节点可能不在路径中,但我可以在终端中输入"node"并获得repl.

GJS*_*3rd 7

VSCODE版本的节点路径0.7.0


我正在运行Ubuntu GNU/Linux 12.04.5 LTS.在VSCode 0.7.0之前,我将节点路径保留在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,
Run Code Online (Sandbox Code Playgroud)

但是,在更新到0.7.0之后,'can't find runtime on "node" PATH'即使节点在我的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:~
Run Code Online (Sandbox Code Playgroud)

我将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",
Run Code Online (Sandbox Code Playgroud)

现在一切正常.实际路径是/usr/bin/,可执行文件是node.


Isi*_*lic 0

这应该与您的 VSCode 更新无关。重新安装节点应该可以解决问题或将节点运行时显式添加到 PATH。