在使用node-debugger pkg的原子中找不到节点可执行文件 [英] node executable could not be found in atom with node-debugger pkg

查看:94
本文介绍了在使用node-debugger pkg的原子中找不到节点可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我按F5键开始调试时,会发生以下错误

When I press F5 to start debugging, the below error happens

无法启动调试器.退出代码为ENOENT,表示找不到节点可执行文件.尝试使用node-debugger.nodePath配置设置在atom配置文件中指定一个显式路径.

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.

我试图添加如下所示的一些配置,但是它不起作用. 我不确定我是否正确添加了它.

I tried to add some configuration like below, but it does not work. I am not sure I added it properly.

vim〜/.atom/config.cson

vim ~/.atom/config.cson

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

你能帮我吗?预先谢谢你.

Could you help me? Thank you in advance.

推荐答案

在编写配置时出现了我的错误.我修好了.

There was my mistake writing configuration. I fixed it.

我在〜/.atom/config.cson中添加了以下内容.

I added like below in ~/.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

you can refer to the similar issue on the below site. https://github.com/kiddkai/atom-node-debugger/issues/127

并使用命令哪个节点"查看节点路径.

And use the command "which node" to see the node path.

这篇关于在使用node-debugger pkg的原子中找不到节点可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆