Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Error installing #6

Closed
rvignacio opened this issue Oct 30, 2011 · 3 comments
Closed

Error installing #6

rvignacio opened this issue Oct 30, 2011 · 3 comments

Comments

@rvignacio
Copy link

Hello, I'm having troubles installing contextify in order to get jsdom to work.

Here's the log:

info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', 'contextify' ]
info using [email protected]
info using [email protected]
verbose config file /home/nacho/.npmrc
verbose config file /usr/etc/npmrc
verbose config file /usr/lib/node_modules/npm/npmrc
verbose mkdir done: /media/49BCF4BD2E85D716/tesis/app/milestone2 755
verbose into /media/49BCF4BD2E85D716/tesis/app/milestone2 [ 'contextify' ]
verbose cache add contextify
verbose cache add [ 'contextify', null ]
silly cache add: name, spec, args [ undefined, 'contextify', [ 'contextify', null ] ]
verbose parsed url { pathname: 'contextify', href: 'contextify' }
info addNamed [ 'contextify', '' ]
verbose addNamed [ null, '' ]
verbose GET contextify
verbose raw, before any munging contextify
verbose url resolving [ 'https://registry.npmjs.org/', './contextify' ]
verbose url resolved https://registry.npmjs.org/contextify
verbose etag "1VU2X5IKY2ASKQEUMJBVI9SC8"
silly get cb [ 304,
silly get cb   { server: 'CouchDB/1.1.0 (Erlang OTP/R14B03)',
silly get cb     etag: '"1VU2X5IKY2ASKQEUMJBVI9SC8"',
silly get cb     date: 'Sun, 30 Oct 2011 22:19:05 GMT',
silly get cb     'content-length': '0' } ]
verbose etag contextify from cache
verbose GET contextify/0.0.6
verbose raw, before any munging contextify/0.0.6
verbose url resolving [ 'https://registry.npmjs.org/',
verbose url resolving   './contextify/0.0.6' ]
verbose url resolved https://registry.npmjs.org/contextify/0.0.6
verbose etag "1VU2X5IKY2ASKQEUMJBVI9SC8"
silly get cb [ 304,
silly get cb   { server: 'CouchDB/1.1.0 (Erlang OTP/R14B03)',
silly get cb     etag: '"1VU2X5IKY2ASKQEUMJBVI9SC8"',
silly get cb     date: 'Sun, 30 Oct 2011 22:19:06 GMT',
silly get cb     'content-length': '0' } ]
verbose etag contextify/0.0.6 from cache
verbose bin dist [ '0.4-ares1.7.4-ev4.4-openssl1.0.0d-v83.1.8.22-linux-3.0.0-12-generic',
verbose bin dist   { shasum: '1d373103c9000b93812783b8e1d1e1889b4a73de',
verbose bin dist     tarball: 'http://registry.npmjs.org/contextify/-/contextify-0.0.6.tgz' } ]
verbose has wscript [ undefined,
verbose has wscript   { file: '/home/nacho/.npm/contextify/0.0.6/package/package.json',
verbose has wscript     contributors: false,
verbose has wscript     serverjs: false,
verbose has wscript     wscript: true } ]
silly testEngine { author: 
silly testEngine    { name: 'Brian McDaniel',
silly testEngine      email: '[email protected]' },
silly testEngine   name: 'contextify',
silly testEngine   description: 'Turn an object into a persistent execution context.',
silly testEngine   keywords: [ 'context', 'vm' ],
silly testEngine   version: '0.0.6',
silly testEngine   repository: 
silly testEngine    { type: 'git',
silly testEngine      url: 'git://github.com/brianmcd/contextify.git' },
silly testEngine   main: './lib/contextify.js',
silly testEngine   directories: { lib: './lib' },
silly testEngine   engines: { node: '>=0.4.0' },
silly testEngine   licenses: 
silly testEngine    [ { type: 'MIT',
silly testEngine        url: 'http://github.com/brianmcd/contextify/blob/master/LICENSE.txt' } ],
silly testEngine   dependencies: {},
silly testEngine   devDependencies: { nodeunit: '>=0.5.x' },
silly testEngine   _id: '[email protected]',
silly testEngine   scripts: { preinstall: 'node-waf clean || true; node-waf configure build' },
silly testEngine   _engineSupported: true,
silly testEngine   _npmVersion: '1.0.103',
silly testEngine   _nodeVersion: 'v0.4.9',
silly testEngine   _defaultsLoaded: true }
verbose caching /home/nacho/.npm/contextify/0.0.6/package/package.json
verbose loadDefaults [email protected]
silly resolved [ { author: 
silly resolved      { name: 'Brian McDaniel',
silly resolved        email: '[email protected]' },
silly resolved     name: 'contextify',
silly resolved     description: 'Turn an object into a persistent execution context.',
silly resolved     keywords: [ 'context', 'vm' ],
silly resolved     version: '0.0.6',
silly resolved     repository: 
silly resolved      { type: 'git',
silly resolved        url: 'git://github.com/brianmcd/contextify.git' },
silly resolved     main: './lib/contextify.js',
silly resolved     directories: { lib: './lib' },
silly resolved     engines: { node: '>=0.4.0' },
silly resolved     licenses: 
silly resolved      [ { type: 'MIT',
silly resolved          url: 'http://github.com/brianmcd/contextify/blob/master/LICENSE.txt' } ],
silly resolved     dependencies: {},
silly resolved     devDependencies: { nodeunit: '>=0.5.x' },
silly resolved     _id: '[email protected]',
silly resolved     scripts: { preinstall: 'node-waf clean || true; node-waf configure build' },
silly resolved     _engineSupported: true,
silly resolved     _npmVersion: '1.0.103',
silly resolved     _nodeVersion: 'v0.4.9',
silly resolved     _defaultsLoaded: true } ]
info into /media/49BCF4BD2E85D716/tesis/app/milestone2 [email protected]
info installOne [email protected]
info unbuild /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/contextify
verbose from cache /home/nacho/.npm/contextify/0.0.6/package/package.json
verbose mkdir (expected) error ENOENT, No such file or directory '/media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm'
verbose mkdir done: /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm 755
verbose unpack_ uid, gid [ undefined, undefined ]
verbose unpackTarget /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/contextify
silly gunzTarPerm modes [ '755', '644' ]
silly spawning [ 'tar',
silly spawning   [ '-zmvxpf',
silly spawning     '/home/nacho/.npm/contextify/0.0.6/package.tgz',
silly spawning     '-o' ],
silly spawning   '/media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm' ]
silly tar out package/wscript
silly tar out package/package.json
silly tar out package/README.md
silly tar out package/LICENSE.txt
silly tar out package/.gitignore
silly tar out package/src/contextify.cc
silly tar out package/lib/contextify.js
silly tar out package/test/contextify.js
silly asyncMap in gTP /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package
silly asyncMap in gTP /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package/.gitignore
silly asyncMap in gTP /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package/LICENSE.txt
silly asyncMap in gTP /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package/package.json
silly asyncMap in gTP /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package/README.md
silly asyncMap in gTP /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package/wscript
silly asyncMap in gTP /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package/src
silly asyncMap in gTP /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package/src/contextify.cc
silly asyncMap in gTP /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package/test
silly asyncMap in gTP /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package/test/contextify.js
silly asyncMap in gTP /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package/lib
silly asyncMap in gTP /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package/lib/contextify.js
silly chmod .gitignore 644
silly chmod package 755
silly chmod LICENSE.txt 644
silly chmod wscript 644
silly chmod src 755
silly chmod contextify.cc 644
silly chmod README.md 644
silly chmod test 755
silly chmod contextify.js 644
silly chmod package.json 644
silly chmod contextify.js 644
silly chmod lib 755
verbose gunzed /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package
verbose rm'ed /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/contextify
verbose renamed [ '/media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/___contextify.npm/package',
verbose renamed   '/media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/contextify' ]
verbose has wscript [ undefined,
verbose has wscript   { file: '/media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/contextify/package.json',
verbose has wscript     contributors: false,
verbose has wscript     serverjs: false,
verbose has wscript     wscript: true } ]
silly testEngine { author: 
silly testEngine    { name: 'Brian McDaniel',
silly testEngine      email: '[email protected]' },
silly testEngine   name: 'contextify',
silly testEngine   description: 'Turn an object into a persistent execution context.',
silly testEngine   keywords: [ 'context', 'vm' ],
silly testEngine   version: '0.0.6',
silly testEngine   repository: 
silly testEngine    { type: 'git',
silly testEngine      url: 'git://github.com/brianmcd/contextify.git' },
silly testEngine   main: './lib/contextify.js',
silly testEngine   directories: { lib: './lib' },
silly testEngine   engines: { node: '>=0.4.0' },
silly testEngine   licenses: 
silly testEngine    [ { type: 'MIT',
silly testEngine        url: 'http://github.com/brianmcd/contextify/blob/master/LICENSE.txt' } ],
silly testEngine   dependencies: {},
silly testEngine   devDependencies: { nodeunit: '>=0.5.x' },
silly testEngine   _id: '[email protected]',
silly testEngine   scripts: { preinstall: 'node-waf clean || true; node-waf configure build' },
silly testEngine   _engineSupported: true,
silly testEngine   _npmVersion: '1.0.103',
silly testEngine   _nodeVersion: 'v0.4.9',
silly testEngine   _defaultsLoaded: true }
verbose caching /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/contextify/package.json
verbose loadDefaults [email protected]
info preinstall [email protected]
verbose unsafe-perm in lifecycle true
silly exec sh "-c" "node-waf clean || true; node-waf configure build"
silly spawning [ 'sh',
silly spawning   [ '-c',
silly spawning     'node-waf clean || true; node-waf configure build' ],
silly spawning   '/media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/contextify' ]
info [email protected] Failed to exec preinstall script
ERR! error installing [email protected] Error: [email protected] preinstall: `node-waf clean || true; node-waf configure build`
ERR! error installing [email protected] `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 127
ERR! error installing [email protected]     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/exec.js:49:20)
ERR! error installing [email protected]     at ChildProcess.emit (events.js:67:17)
ERR! error installing [email protected]     at ChildProcess.onexit (child_process.js:192:12)
info unbuild /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/contextify
verbose from cache /media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules/contextify/package.json
info preuninstall [email protected]
info uninstall [email protected]
verbose unbuild [email protected] [ true,
verbose unbuild [email protected]   '/media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules',
verbose unbuild [email protected]   '/media/49BCF4BD2E85D716/tesis/app/milestone2/node_modules' ]
info postuninstall [email protected]
verbose installOne cb [email protected]
ERR! [email protected] preinstall: `node-waf clean || true; node-waf configure build`
ERR! `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 127
ERR! 
ERR! Failed at the [email protected] preinstall script.
ERR! This is most likely a problem with the contextify package,
ERR! not with npm itself.
ERR! Tell the author that this fails on your system:
ERR!     node-waf clean || true; node-waf configure build
ERR! You can get their info via:
ERR!     npm owner ls contextify
ERR! There is likely additional logging output above.
ERR! 
ERR! System Linux 3.0.0-12-generic
ERR! command "node" "/usr/bin/npm" "install" "contextify"
ERR! cwd /media/49BCF4BD2E85D716/tesis/app/milestone2
ERR! node -v v0.4.9
ERR! npm -v 1.0.103
ERR! code ELIFECYCLE
verbose exit [ 1, true ]

Any help will be appreciated,
Thanks!

@brianmcd
Copy link
Owner

Do you have node-waf installed? I've seen some issues where somehow people have node, but no node-waf. node-waf should get installed when you run make install for node. It can also get broken if you've installed multiple versions of node without doing a make uninstall between them. Sometimes, re-installing node fixes these sorts of issues. You could also check out the source from github and build it manually (node-waf configure build in the root contextify directory, then nodeunit test/ to run the unit tests. If you don't have nodeunit, you can install it with npm install nodeunit -g). If that works, then it might be something with your npm install.

@brianmcd
Copy link
Owner

brianmcd commented Nov 3, 2011

Let me know if you're still having trouble.

@brianmcd brianmcd closed this as completed Nov 3, 2011
@rvignacio
Copy link
Author

Sorry, I couldn't check this before... yes, it was a "node-waf not installed" problem.
Thanks for the help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants