【问题标题】:Node js always running节点 js 一直在运行
【发布时间】:2014-03-10 14:56:27
【问题描述】:

我正在尝试用钛构建我的项目,但我总是收到此错误。

events.js:72 投掷者; // 未处理的“错误”事件 ^ 错误:生成 ENOENT 在 errnoException (child_process.js:988:11) 在 ChildProcess._handle.onexit (child_process.js:779:34) [rayhan@localhost test]$ appl

谷歌搜索让我得出结论,另一个 node.js 进程正在侦听同一端口。 所以我试图查看正在使用哪个进程运行

ps aus | grep node

我总是得到不同的 pid:

[rayhan@localhost test]$ ps aux | grep node
rayhan    **1146**  0.0  0.0   8952   660 pts/0    S+   12:26   0:00 grep node

[rayhan@localhost test]$ ps aux | grep node
rayhan    **1148**  0.0  0.0   8952   660 pts/0    S+   12:26   0:00 grep node

[rayhan@localhost test]$ ps aux | grep node
rayhan    **1150**  0.0  0.0   8952   656 pts/0    S+   12:26   0:00 grep node

[rayhan@localhost test]$ ps aux | grep node
rayhan    **1152**  0.0  0.0   8952   660 pts/0    S+   12:26   0:00 grep node

我试过了

forever list
info:    No forever processes running

可能是什么问题?

谢谢

【问题讨论】:

  • 代码是用“titanium create”生成的示例

标签: node.js titanium forever


【解决方案1】:

您正在查看的 pid 用于 grep node 进程,这就是为什么它每次都不同的原因。似乎没有运行节点进程,因此您的问题出在其他地方。如果没有看到您的任何代码,我们真的无法为您提供进一步的帮助。

[更新]

这个错误不是很冗长,但它看起来像是试图生成一个子进程并且失败了。如果您尝试为不存在的可执行文件的命令生成子进程,则会发生这种错误。我将在这里进行大胆的猜测,并假设您尚未安装 Titan 所需的一个或多个依赖项,或者您的环境 PATH 不包含依赖可执行文件的目录。

你看过这个页面吗:http://docs.appcelerator.com/titanium/latest/#!/guide/Setting_up_the_Titanium_CLI

【讨论】:

  • 代码是用“titanium create”生成的示例
猜你喜欢
  • 2022-01-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-06-06
  • 2020-08-12
  • 1970-01-01
  • 2018-02-19
  • 1970-01-01
相关资源
最近更新 更多