我正在Ubuntu 12.04上运行节点v0.10.5,并且我能够使用forever模块启动进程,但是一旦我尝试列出进程,就会永远崩溃这个错误/堆栈跟踪:
/usr/local/lib/node_modules/forever/node_modules/nssocket/node_modules/lazy/lazy.js:211
for (var i = 0; i < chunk.length; i++) {
^
TypeError: Cannot read property 'length' of null
at Function.<anonymous> (/usr/local/lib/node_modules/forever/node_modules/nssocket/node_modules/lazy/lazy.js:211:38)
at Lazy.<anonymous> (/usr/local/lib/node_modules/forever/node_modules/nssocket/node_modules/lazy/lazy.js:187:21)
at Lazy.EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (/usr/local/lib/node_modules/forever/node_modules/nssocket/node_modules/lazy/lazy.js:50:22)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:392:10)
at emitReadable (_stream_readable.js:388:5)
at Socket.Readable.read (_stream_readable.js:250:5)
at Socket.onSocketEnd (net.js:256:10)
at Socket.EventEmitter.emit (events.js:117:20)
我尝试升级它,并彻底重新安装它。
答案 0 :(得分:2)
答案 1 :(得分:1)
在node.js版本0.10上,Forever仍然被破坏。您现在通过nvm安装0.8