isaacs/npm — Issue #2082: error installing forever globally
Author: ehynds
Created: 2012-01-24 02:37:01+00:00
State: open

````
ehynds@ehynds ~: sudo npm install -g forever
[sudo] password for ehynds:
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/flatiron
npm http GET https://registry.npmjs.org/cliff
npm http GET https://registry.npmjs.org/microtime
npm http GET https://registry.npmjs.org/daemon
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/nconf
npm http GET https://registry.npmjs.org/nssocket
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/node-fork
npm http GET https://registry.npmjs.org/portfinder
npm http GET https://registry.npmjs.org/watch
npm http GET https://registry.npmjs.org/timespan
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/ps-tree
npm http GET https://registry.npmjs.org/utile
npm http GET https://registry.npmjs.org/winston
npm http 304 https://registry.npmjs.org/cliff
npm http 304 https://registry.npmjs.org/microtime
npm http 304 https://registry.npmjs.org/flatiron
npm http 304 https://registry.npmjs.org/daemon
npm http 304 https://registry.npmjs.org/broadway
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/nconf
npm http 304 https://registry.npmjs.org/nssocket
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/node-fork
npm http 304 https://registry.npmjs.org/portfinder
npm http 304 https://registry.npmjs.org/watch
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/ps-tree
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 /usr/local/lib/node_modules/forever/node_modules/microtime
> node-waf configure build

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

> daemon@0.4.1 preinstall /usr/local/lib/node_modules/forever/node_modules/daemon
> bash ./install

npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/ncp
npm http 304 https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/eventemitter2
npm http GET https://registry.npmjs.org/lazy
Checking for program g++ or c++ : /usr/bin/g++
Checking for program g++ or c++ : /usr/bin/g++
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/ncp
npm http 304 https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/event-stream
npm http 304 https://registry.npmjs.org/eventemitter2
npm http 304 https://registry.npmjs.org/lazy
npm http 304 https://registry.npmjs.org/event-stream

> node-fork@0.4.0 preinstall /usr/local/lib/node_modules/forever/node_modules/node-fork
> bash ./install

npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.3.tgz
Checking for program g++ or c++ : /usr/bin/g++
npm http GET https://registry.npmjs.org/director/1.0.8
npm http GET https://registry.npmjs.org/broadway/0.1.7
npm http GET https://registry.npmjs.org/optimist/0.3.1
npm http GET https://registry.npmjs.org/pkginfo/0.2.2
npm http GET https://registry.npmjs.org/prompt/0.1.11
npm http 304 https://registry.npmjs.org/wordwrap
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
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 g++ : ok
Checking for node path : Checking for node path : ok /home/ehynds/.node_libraries
Checking for node prefix : ok /usr/local
npm http 200 https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.3.tgz
ok /home/ehynds/.node_libraries
Checking for node prefix : ok /usr/local
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
'configure' finished successfully (0.475s)
'configure' finished successfully (0.479s)
Checking for g++ : ok
Checking for node path : ok /home/ehynds/.node_libraries
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.140s)
Waf: Entering directory `/usr/local/lib/node_modules/forever/node_modules/node-fork/build'
Waf: Entering directory `/usr/local/lib/node_modules/forever/node_modules/microtime/build'
[1/2] cxx: src/createpair.cc -> build/Release/src/createpair_1.o
npm http 304 https://registry.npmjs.org/director/1.0.8
npm http 304 https://registry.npmjs.org/broadway/0.1.7
Waf: Entering directory `/usr/local/lib/node_modules/forever/node_modules/daemon/build'
[1/2] cxx: src/microtime.cc -> build/Release/src/microtime_1.o
[1/2] cxx: src/daemon.cc -> build/Release/src/daemon_1.o
npm http GET https://registry.npmjs.org/broadway/-/broadway-0.1.7.tgz
npm http 304 https://registry.npmjs.org/optimist/0.3.1
npm http 304 https://registry.npmjs.org/pkginfo/0.2.2
npm http 200 https://registry.npmjs.org/broadway/-/broadway-0.1.7.tgz
npm http 304 https://registry.npmjs.org/prompt/0.1.11
npm http GET https://registry.npmjs.org/optimist/0.3.1
npm http GET https://registry.npmjs.org/eventemitter2/0.4.3
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/eventemitter2/0.4.3
npm http 304 https://registry.npmjs.org/optimist/0.3.1
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/ini
npm WARN eyes@0.1.7 dependencies field should be hash of : pairs
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/ini
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/loggly
npm http GET https://registry.npmjs.org/stack-trace
npm ERR! error installing optimist@0.3.1
npm ERR! error installing nconf@0.5.1
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/colors
npm ERR! error rolling back nconf@0.5.1 Error: UNKNOWN, unknown error '/usr/local/lib/node_modules/forever/node_modules/nconf/node_modules/___async.npm/package'
npm ERR! error installing forever@0.8.4
npm http 200 https://registry.npmjs.org/stack-trace
npm http 200 https://registry.npmjs.org/loggly
Assembler messages:
Error: can't open /usr/local/lib/node_modules/forever/node_modules/node-fork/ccBsdf0V.s for reading: No such file or directory
Assembler messages:
Error: can't open /usr/local/lib/node_modules/forever/node_modules/microtime/cc2kh0pU.s for reading: No such file or directory
Assembler messages:
Error: can't open /usr/local/lib/node_modules/forever/node_modules/daemon/ccEtMpvU.s for reading: No such file or directory
npm ERR! error installing colors@0.6.0-1

npm ERR! EEXIST, file already exists '/usr/local/lib/node_modules/forever/node_modules/nconf/node_modules/___ini.npm/package/test'
npm ERR! File exists: /usr/local/lib/node_modules/forever/node_modules/nconf/node_modules/___ini.npm/package/test
npm ERR! Move it away, and try again.
npm ERR!
npm ERR! System Linux 2.6.39.1-linode34
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "forever"
npm ERR! cwd /home/ehynds
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! path /usr/local/lib/node_modules/forever/node_modules/nconf/node_modules/___ini.npm/package/test
npm ERR! fstream_path /usr/local/lib/node_modules/forever/node_modules/nconf/node_modules/___ini.npm/package/test/fixtures
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EEXIST
npm ERR! message EEXIST, file already exists '/usr/local/lib/node_modules/forever/node_modules/nconf/node_modules/___ini.npm/package/test'
npm ERR! errno {}
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:161:23
npm ERR! fstream_stack Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:25:53)
Traceback (most recent call last):
File "/usr/local/bin/node-waf", line 16, in
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 386, in build
return build_impl(bld)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 408, in build_impl
info("Waf: Leaving directory `%s'" % bld.bldnode.abspath())
File "/usr/local/bin/../lib/node/wafadmin/Node.py", line 420, in abspath
ret = self.__class__.bld.cache_node_abspath[variant].get(self.id, None)
AttributeError: 'NoneType' object has no attribute 'cache_node_abspath'
Traceback (most recent call last):
File "/usr/local/bin/node-waf", line 16, in
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 386, in build
return build_impl(bld)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 408, in build_impl
info("Waf: Leaving directory `%s'" % bld.bldnode.abspath())
File "/usr/local/bin/../lib/node/wafadmin/Node.py", line 420, in abspath
ret = self.__class__.bld.cache_node_abspath[variant].get(self.id, None)
AttributeError: 'NoneType' object has no attribute 'cache_node_abspath'
Traceback (most recent call last):
File "/usr/local/bin/node-waf", line 16, in
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 386, in build
return build_impl(bld)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 408, in build_impl
info("Waf: Leaving directory `%s'" % bld.bldnode.abspath())
File "/usr/local/bin/../lib/node/wafadmin/Node.py", line 420, in abspath
ret = self.__class__.bld.cache_node_abspath[variant].get(self.id, None)
AttributeError: 'NoneType' object has no attribute 'cache_node_abspath'
npm ERR! error installing microtime@0.2.0
npm ERR! error rolling back forever@0.8.4 Error: UNKNOWN, unknown error '/usr/local/lib/node_modules/forever/node_modules/cliff/node_modules'

npm ERR! Error: ENOENT, no such file or directory '/usr/local/lib/node_modules/forever/node_modules/nconf/node_modules/optimist/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 Linux 2.6.39.1-linode34
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "forever"
npm ERR! cwd /home/ehynds
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! path /usr/local/lib/node_modules/forever/node_modules/nconf/node_modules/optimist/package.json
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/usr/local/lib/node_modules/forever/node_modules/nconf/node_modules/optimist/package.json'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ehynds/npm-debug.log
npm not ok
````