节点可执行文件无法在node-debugger pkg的primefaces中find

当我按F5开始debugging时,发生下面的错误

无法启动debugging器。 退出代码是ENOENT,表示找不到节点可执行文件。 尝试使用node-debugger.nodePathconfiguration设置在primefacesconfiguration文件中指定显式path。

我试图添加一些像下面的configuration,但它不工作。 我不确定我是否正确添加了它。

vim〜/ .atom / config.cson

"node-debugger": nodePath: "/usr/bin/node" 

你可以帮帮我吗? 先谢谢你。

有写我的错误configuration。 我修好了它。

我在〜/ .atom / config.cson中添加如下。

 "*": editor: fontSize: 11 "exception-reporting": userId: "77b3d578-0126-41d7-9cdd-b994407621f0" "node-debugger": nodePath: "/usr/bin/node" 

你可以参考下面网站上的类似问题。 https://github.com/kiddkai/atom-node-debugger/issues/127

并使用命令“哪个节点”来查看节点path。

我已经在上面尝试过了,也尝试了什么在github链接。 但它仍然不适合我。 我正在使用NVM。 不知道这是否是一个问题。要find节点的path,我正在使用我的Mac上的which node 。 下面是我的primefacesconfig.cson文件的样子:

 "*": core: packagesWithKeymapsDisabled: [] projectHome: "/Users/myusername/Documents/projects" telemetryConsent: "no" themes: [ "atom-material-ui" "atom-material-syntax" ] editor: fontSize: 18 "node-debugger": nodePath: "/Users/myusername/.nvm/versions/node/v8.7.0/bin/node" scriptMain: "node --inspect ./bin/www" welcome: showOnStartup: false 

我启动debugging器时得到的错误是: Failed to start debugger. Exit code was ENOENT which indicates that the node executable could not be found. Try specifying an explicit path in your atom config file using the node-debugger.nodePath configuration setting. Failed to start debugger. Exit code was ENOENT which indicates that the node executable could not be found. Try specifying an explicit path in your atom config file using the node-debugger.nodePath configuration setting.