indexzero/forever — Issue #151: Unable to start forever; Cannot find module event-stream
Author: samxli
Created: 2011-10-29 08:44:46+00:00
State: open

Running on a Centos 5.4 64bit box. Installed node v0.4.12 from source and installed npm 1.0.103.

The following is the install process along with the error:

```
[root@server]# npm install forever -g
npm WARN async@0.1.12 package.json: bugs['web'] should probably be bugs['url']
npm WARN watch@0.3.3 package.json: bugs['web'] should probably be bugs['url']

> daemon@0.3.2 preinstall /usr/local/lib/node_modules/forever/node_modules/daemon
> node-waf configure build

Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.052s)
Waf: Entering directory `/usr/local/lib/node_modules/forever/node_modules/daemon/build'
[1/2] cxx: src/daemon.cc -> build/default/src/daemon_1.o
../src/daemon.cc:208:2: warning: no newline at end of file
[2/2] cxx_link: build/default/src/daemon_1.o -> build/default/daemon.node
Waf: Leaving directory `/usr/local/lib/node_modules/forever/node_modules/daemon/build'
'build' finished successfully (0.343s)
npm WARN request@2.1.1 package.json: bugs['web'] should probably be bugs['url']
/usr/local/bin/forever -> /usr/local/lib/node_modules/forever/bin/forever
/usr/local/bin/foreverd -> /usr/local/lib/node_modules/forever/bin/foreverd
forever@0.7.2 /usr/local/lib/node_modules/forever
├── colors@0.5.1
├── pkginfo@0.2.2
├── timespan@2.0.1
├── mkdirp@0.0.7
├── async@0.1.12
├── portfinder@0.2.0
├── watch@0.3.3
├── minimatch@0.0.4
├── cliff@0.1.5 (eyes@0.1.6)
├── ps-tree@0.0.1 (parse-table@0.0.0)
├── daemon@0.3.2
├── optimist@0.2.8 (wordwrap@0.0.2)
├── nconf@0.4.4 (ini@1.0.1)
├── dnode@0.8.2 (lazy@1.0.7 traverse@0.4.6 dnode-protocol@0.0.12 socket.io@0.6.18)
├── winston@0.5.6 (stack-trace@0.0.6 eyes@0.1.6 loggly@0.3.9)
└── clip@0.1.6
[root@server]# forever

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'event-stream'
at Function._resolveFilename (module.js:326:11)
at Function._load (module.js:271:25)
at require (module.js:355:19)
at Object. (/usr/local/lib/node_modules/forever/node_modules/ps-tree/node_modules/parse-table/index.js:1:72)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at require (module.js:355:19)
at Object. (/usr/local/lib/node_modules/forever/node_modules/ps-tree/index.js:3:16)
```