nodejitsu/forever — Issue #254: Can't install with npm: 
Author: viatropos
Created: 2012-03-03 22:50:45+00:00
State: open

When I run `npm install forever`, the last chunk of output shows a bunch of `npm ERR! Error: ENOENT` messages, among others, and the installation fails.

Here is the full terminal output:

```
npm http GET https://registry.npmjs.org/forever
npm http 304 https://registry.npmjs.org/forever
npm http GET https://registry.npmjs.org/broadway
npm http GET https://registry.npmjs.org/cliff
npm http GET https://registry.npmjs.org/daemon
npm http GET https://registry.npmjs.org/flatiron
npm http GET https://registry.npmjs.org/microtime
npm http GET https://registry.npmjs.org/nconf
npm http GET https://registry.npmjs.org/nssocket
npm http GET https://registry.npmjs.org/node-fork
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/portfinder
npm http GET https://registry.npmjs.org/ps-tree
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/timespan
npm http GET https://registry.npmjs.org/watch
npm http GET https://registry.npmjs.org/utile
npm http GET https://registry.npmjs.org/winston
npm http 304 https://registry.npmjs.org/broadway
npm http 304 https://registry.npmjs.org/cliff
npm http 304 https://registry.npmjs.org/flatiron
npm http 304 https://registry.npmjs.org/daemon
npm http 304 https://registry.npmjs.org/nconf
npm http 304 https://registry.npmjs.org/microtime
npm http 304 https://registry.npmjs.org/nssocket
npm http 304 https://registry.npmjs.org/node-fork
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/portfinder
npm http 304 https://registry.npmjs.org/ps-tree
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/watch
npm http 304 https://registry.npmjs.org/timespan
npm http 304 https://registry.npmjs.org/utile
npm http 304 https://registry.npmjs.org/winston
npm http GET https://registry.npmjs.org/parse-table

> microtime@0.2.0 install /Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/microtime
> node-waf configure build

npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/lru-cache

> daemon@0.4.1 preinstall /Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/daemon
> bash ./install

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 : ok /usr/local/lib/node
Checking for node prefix : ok /usr/local/Cellar/node/0.6.11
'configure' finished successfully (0.054s)
Waf: Entering directory `/Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/microtime/build'
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/ncp
npm http GET https://registry.npmjs.org/rimraf
[1/2] cxx: src/microtime.cc -> build/Release/src/microtime_1.o
npm http GET https://registry.npmjs.org/async
Checking for program g++ or c++ : /usr/bin/g++
npm http GET https://registry.npmjs.org/lazy
npm http GET https://registry.npmjs.org/eventemitter2
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 : ok /usr/local/lib/node
Checking for node prefix : ok /usr/local/Cellar/node/0.6.11
'configure' finished successfully (0.058s)
Waf: Entering directory `/Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/daemon/build'
[1/2] cxx: src/daemon.cc -> build/Release/src/daemon_1.o

> node-fork@0.4.2 preinstall /Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/node-fork
> bash ./install

npm http GET https://registry.npmjs.org/wordwrap
[2/2] cxx_link: build/Release/src/microtime_1.o -> build/Release/microtime.node
Waf: Leaving directory `/Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/microtime/build'
'build' finished successfully (0.344s)
npm http GET https://registry.npmjs.org/optimist/0.3.1
npm http GET https://registry.npmjs.org/prompt/0.1.12
npm http GET https://registry.npmjs.org/director/1.0.9-1
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
npm http 304 https://registry.npmjs.org/parse-table
Checking for g++ : ok
Checking for node path : ok /usr/local/lib/node
Checking for node prefix : ok /usr/local/Cellar/node/0.6.11
[2/2] cxx_link: build/Release/src/daemon_1.o -> build/Release/daemon.node
npm http GET https://registry.npmjs.org/eventemitter2/0.4.8
npm http GET https://registry.npmjs.org/colors/0.6.0-1
'configure' finished successfully (0.073s)
npm http 304 https://registry.npmjs.org/mkdirp
Waf: Entering directory `/Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/node-fork/build'
Waf: Leaving directory `/Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/daemon/build'
'build' finished successfully (0.367s)
[1/2] cxx: src/createpair.cc -> build/Release/src/createpair_1.o
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/event-stream
npm http 304 https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/lazy
npm http 304 https://registry.npmjs.org/eventemitter2
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/ncp
[2/2] cxx_link: build/Release/src/createpair_1.o -> build/Release/createpair.node
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/optimist/0.3.1
Waf: Leaving directory `/Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/node-fork/build'
'build' finished successfully (0.272s)
npm http 304 https://registry.npmjs.org/prompt/0.1.12
npm http 304 https://registry.npmjs.org/director/1.0.9-1
npm http 304 https://registry.npmjs.org/eventemitter2/0.4.8
npm ERR! error installing prompt@0.1.12
npm ERR! error installing flatiron@0.1.14

npm ERR! Error: ENOENT, no such file or directory '/Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/flatiron/node_modules/___optimist.npm/package/examples/boolean_single.js'
npm ERR! You may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 10.7.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/viatropos/Desktop/tw/abb
npm ERR! node -v v0.6.11
npm ERR! npm -v 1.1.1
npm ERR! path /Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/flatiron/node_modules/___optimist.npm/package/examples/boolean_single.js
npm ERR! fstream_path /Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/flatiron/node_modules/___optimist.npm/package/examples/boolean_single.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/flatiron/node_modules/___optimist.npm/package/examples/boolean_single.js'
npm ERR! errno {}
npm ERR! fstream_stack Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:204:26)
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/colors/0.6.0-1
npm http 304 https://registry.npmjs.org/event-stream
npm http 304 https://registry.npmjs.org/colors
npm ERR! error rolling back flatiron@0.1.14 Error: UNKNOWN, unknown error '/Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/flatiron/node_modules/___director.npm/package'
npm ERR! error installing forever@0.8.5
npm WARN eyes@0.1.7 dependencies field should be hash of : pairs

npm ERR! Error: ENOENT, no such file or directory '/Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/utile/node_modules/___ncp.npm/package/package.json'
npm ERR! You may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 10.7.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/viatropos/Desktop/tw/abb
npm ERR! node -v v0.6.11
npm ERR! npm -v 1.1.1
npm ERR! path /Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/utile/node_modules/___ncp.npm/package/package.json
npm ERR! fstream_path /Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/utile/node_modules/___ncp.npm/package/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/Users/viatropos/Desktop/tw/abb/node_modules/forever/node_modules/utile/node_modules/___ncp.npm/package/package.json'
npm ERR! errno {}
npm ERR! fstream_stack Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:285:17)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/viatropos/Desktop/tw/abb/npm-debug.log
npm not ok
```

Do you know how to fix this?