node executable could not be found in atom with node-debugger pkg

旧街凉风 提交于 2019-12-12 23:47:50

问题


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

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

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

Could you help me? Thank you in advance.


回答1:


There was my mistake writing configuration. I fixed it.

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" 

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.



来源:https://stackoverflow.com/questions/43450193/node-executable-could-not-be-found-in-atom-with-node-debugger-pkg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!