我想開始一個PM2帆應用程序,但我得到了以下錯誤帆應用:錯誤開始PM2
pm2 start app.js --name myapp -i 2
pm2 logs
[myapp-1 (out) 2014-05-25T13:38:51] info: Sails <|
[myapp-1 (out) 2014-05-25T13:38:51] info: v0.10.0-rc7 |\
[myapp-1 (out) 2014-05-25T13:38:51] info: /|.\
[myapp-1 (out) 2014-05-25T13:38:51] info: /|| \
[myapp-1 (out) 2014-05-25T13:38:51] info: ,' |' \
[myapp-1 (out) 2014-05-25T13:38:51] info: .-'.-==|/_--'
[myapp-1 (out) 2014-05-25T13:38:51]
[myapp-1 (err) 2014-05-25T13:38:51] debug: Environment : development
[myapp-1 (err) 2014-05-25T13:38:51] debug: Port : 1338
[myapp-1 (err) 2014-05-25T13:38:51] debug: --------------------------------------------------------
[myapp-1 (err) 2014-05-25T13:38:51] TypeError: Object #<Object> has no method 'addAsyncListener'
[myapp-1 (err) 2014-05-25T13:38:51] at Server._listen2 (net.js:1095:18)
[myapp-1 (err) 2014-05-25T13:38:51] at cb (net.js:1139:10)
[myapp-1 (err) 2014-05-25T13:38:51] at rr (cluster.js:552:5)
[myapp-1 (err) 2014-05-25T13:38:51] at Worker.<anonymous> (cluster.js:484:9)
[myapp-1 (err) 2014-05-25T13:38:51] at process.<anonymous> (cluster.js:611:8)
[myapp-1 (err) 2014-05-25T13:38:51] at process.EventEmitter.emit (events.js:123:20)
[myapp-1 (err) 2014-05-25T13:38:51] at handleMessage (child_process.js:318:10)
[myapp-1 (err) 2014-05-25T13:38:51] at Pipe.channel.onread (child_process.js:346:11)
帆版本:0.10.0-rc7
PM2版本:0.8.6
另外,我不知道如何設置環境和端口。我試過--node-args="--prod"
,但沒有效果。
我已經試過模塊永遠,工作正常。
有沒有人有任何想法我可以解決這個問題?
謝謝
編輯
顯然是node.js中的版本問題
我做了一些測試,並在pm2存儲庫中報告了問題:https://github.com/Unitech/pm2/issues/491。
任何消息,我會在這裏更新。
'--node-args'用於節點V8參數,不適用於您的腳本。 – Unitech