2014-02-12 105 views
0

我正嘗試在鈦中構建我的項目,但我總是遇到此錯誤。節點js始終運行

events.js:72 throw er; // Unhandled 'error' event ^Error: spawn ENOENT at errnoException (child_process.js:988:11) at ChildProcess._handle.onexit (child_process.js:779:34) [[email protected] test]$ appl

谷歌搜索引起我的結論是另一個node.js進程正在同一個端口上偵聽。 ,所以我想看看哪些進程正在使用

ps aus | grep node 

我總是得到一個不同的PID運行:

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

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

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

[[email protected] 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 

什麼可能是問題嗎?

感謝

+0

的代碼是與生成的「鈦創造」的樣本 –

回答

0

你看pid是爲grep node過程,這就是爲什麼每次它的與衆不同。似乎沒有一個節點進程正在運行,所以你的問題在別處。沒有看到你的任何代碼,我們無法真正幫助你進一步。

[更新]

的錯誤不是很詳細,但它看起來像它試圖產生一個子進程和失敗。如果您嘗試爲不存在的可執行文件生成命令的子進程,則會出現這種錯誤類型。我將在此猜測並假設您尚未安裝titanium所需的一個或多個依賴項,或者您的環境PATH不包含依賴於可執行文件的目錄。

你有閱讀此頁:http://docs.appcelerator.com/titanium/latest/#!/guide/Setting_up_the_Titanium_CLI

+0

的代碼是與產生的樣本「鈦打造」 –

+0

我已經更新了我的答案。 – badsyntax