Skip to content

Instantly share code, notes, and snippets.

@jayfallon
Created September 4, 2011 21:28
Show Gist options
  • Select an option

  • Save jayfallon/1193542 to your computer and use it in GitHub Desktop.

Select an option

Save jayfallon/1193542 to your computer and use it in GitHub Desktop.
npm install forever
> daemon@0.3.0 preinstall /root/src/npm/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 /root/local/node
'configure' finished successfully (0.056s)
Waf: Entering directory `/root/src/npm/node_modules/forever/node_modules/daemon/build'
no such environment: default
Traceback (most recent call last):
File "/root/local/node/bin/node-waf", line 16, in <module>
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/root/local/node/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/root/local/node/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/root/local/node/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/root/local/node/bin/../lib/node/wafadmin/Scripting.py", line 386, in build
return build_impl(bld)
File "/root/local/node/bin/../lib/node/wafadmin/Scripting.py", line 399, in build_impl
bld.add_subdirs([os.path.split(Utils.g_module.root_path)[0]])
File "/root/local/node/bin/../lib/node/wafadmin/Build.py", line 981, in add_subdirs
self.recurse(dirs, 'build')
File "/root/local/node/bin/../lib/node/wafadmin/Utils.py", line 634, in recurse
f(self)
File "/root/src/npm/node_modules/forever/node_modules/daemon/wscript", line 17, in build
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
File "/root/local/node/bin/../lib/node/wafadmin/Build.py", line 335, in new_task_gen
ret = cls(*k, **kw)
File "/root/local/node/bin/../lib/node/wafadmin/Tools/ccroot.py", line 162, in __init__
TaskGen.task_gen.__init__(self, *k, **kw)
File "/root/local/node/bin/../lib/node/wafadmin/TaskGen.py", line 118, in __init__
self.env = self.bld.env.copy()
AttributeError: 'NoneType' object has no attribute 'copy'
npm ERR! error installing daemon@0.3.0 Error: daemon@0.3.0 preinstall: `node-waf configure build`
npm ERR! error installing daemon@0.3.0 `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing daemon@0.3.0 at ChildProcess.<anonymous> (/root/local/node/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing daemon@0.3.0 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing daemon@0.3.0 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! error installing forever@0.6.6 Error: daemon@0.3.0 preinstall: `node-waf configure build`
npm ERR! error installing forever@0.6.6 `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing forever@0.6.6 at ChildProcess.<anonymous> (/root/local/node/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing forever@0.6.6 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing forever@0.6.6 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! daemon@0.3.0 preinstall: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the daemon@0.3.0 preinstall script.
npm ERR! This is most likely a problem with the daemon package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls daemon
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.0.4-linode36
npm ERR! command "node" "/root/local/node/bin/npm" "install" "forever"
npm ERR! cwd /root/src/npm
npm ERR! node -v v0.4.11
npm ERR! npm -v 1.0.27
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/src/npm/npm-debug.log
npm not ok
Copy link
Copy Markdown

ghost commented Sep 17, 2011

Hi, I'm having the same issue. How did you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment