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

error installing contextify on ubuntu #18

Closed
snez opened this issue Feb 10, 2012 · 2 comments
Closed

error installing contextify on ubuntu #18

snez opened this issue Feb 10, 2012 · 2 comments

Comments

@snez
Copy link

snez commented Feb 10, 2012

npm install -g contextify

npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/contextify

[email protected] preinstall /usr/lib/node_modules/contextify
node-waf clean || (exit 0); node-waf configure build

sh: node-waf: not found
sh: node-waf: not found
npm ERR! error installing [email protected]

npm ERR! [email protected] preinstall: node-waf clean || (exit 0); node-waf configure build
npm ERR! sh "-c" "node-waf clean || (exit 0); node-waf configure build" failed with 127
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf clean || (exit 0); node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.35.4-rscloud
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "contextify"
npm ERR! cwd /root/scraper
npm ERR! node -v v0.6.10
npm ERR! npm -v 1.1.1
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] preinstall: node-waf clean || (exit 0); node-waf configure build
npm ERR! message sh "-c" "node-waf clean || (exit 0); node-waf configure build" failed with 127
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/scraper/npm-debug.log
npm not ok

@snez
Copy link
Author

snez commented Feb 10, 2012

info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', 'contextify' ]
info using [email protected]
info using [email protected]
verbose /usr/bin/node node symlink
verbose config file /root/.npmrc
verbose config file /usr/etc/npmrc
verbose config file /usr/lib/node_modules/npm/npmrc
silly exec /usr/bin/node "/usr/lib/node_modules/npm/bin/npm-get-uid-gid.js" "nobody" 0
silly spawning [ '/usr/bin/node',
silly spawning [ '/usr/lib/node_modules/npm/bin/npm-get-uid-gid.js',
silly spawning 'nobody',
silly spawning 0 ],
silly spawning null ]
silly output from getuid/gid {"uid":65534,"gid":0}
silly output from getuid/gid
verbose cache add [ 'contextify', null ]
silly cache add: name, spec, args [ undefined, 'contextify', [ 'contextify', null ] ]
verbose parsed url { pathname: 'contextify',
verbose parsed url path: 'contextify',
verbose parsed url href: 'contextify' }
verbose addNamed [ 'contextify', '' ]
verbose addNamed [ null, '' ]
silly name, range, hasData [ 'contextify', '', false ]
verbose raw, before any munging contextify
verbose url resolving [ 'https://registry.npmjs.org/', './contextify' ]
verbose url resolved https://registry.npmjs.org/contextify
verbose etag "DERD3CX4E4QIS57880BDPJAFL"
http GET https://registry.npmjs.org/contextify
http 304 https://registry.npmjs.org/contextify
silly get cb [ 304,
silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
silly get cb etag: '"DERD3CX4E4QIS57880BDPJAFL"',
silly get cb date: 'Fri, 10 Feb 2012 12:00:45 GMT',
silly get cb 'content-length': '0' } ]
verbose etag contextify from cache
silly name, range, hasData 2 [ 'contextify', '', true ]
silly versions [ 'contextify',
silly versions [ '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.1.0' ] ]
verbose bin dist [ '0.6-ares1.7.5-DEV-evundefined-openssl0.9.8k-v83.6.6.20-linux-x64-2.6.35.4-rscloud',
verbose bin dist { shasum: '251b726f05b2385e02379ae2b310b607d89f58c2',
verbose bin dist tarball: 'http://registry.npmjs.org/contextify/-/contextify-0.1.0.tgz' } ]
verbose has wscript [ undefined,
verbose has wscript { file: '/root/.npm/contextify/0.1.0/package/package.json',
verbose has wscript contributors: false,
verbose has wscript serverjs: false,
verbose has wscript wscript: true } ]
verbose caching /root/.npm/contextify/0.1.0/package/package.json
verbose loadDefaults [email protected]
silly resolved [ { name: 'contextify',
silly resolved version: '0.1.0',
silly resolved description: 'Turn an object into a persistent execution context.',
silly resolved author: { name: 'Brian McDaniel', email: '[email protected]' },
silly resolved contributors:
silly resolved [ { name: 'Assaf Arkin',
silly resolved email: '[email protected]',
silly resolved url: 'http://labnotes.org/' } ],
silly resolved keywords: [ 'context', 'vm' ],
silly resolved repository: { type: 'git', url: 'git://github.com/brianmcd/contextify.git' },
silly resolved main: './lib/contextify',
silly resolved scripts:
silly resolved { test: 'nodeunit test/',
silly resolved preinstall: 'node-waf clean || (exit 0); node-waf configure build' },
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 devDependencies: { nodeunit: '>=0.5.x' },
silly resolved _id: '[email protected]',
silly resolved dependencies: {},
silly resolved optionalDependencies: {},
silly resolved _engineSupported: true,
silly resolved _npmVersion: '1.1.1',
silly resolved _nodeVersion: 'v0.6.10',
silly resolved _defaultsLoaded: true } ]
info into /usr/lib [email protected]
info installOne [email protected]
info unbuild /usr/lib/node_modules/contextify
verbose from cache /root/.npm/contextify/0.1.0/package/package.json
verbose mkdir (expected) error ENOENT, no such file or directory '/usr/lib/node_modules/___contextify.npm'
verbose mkdir done: /usr/lib/node_modules/__contextify.npm 755
verbose unpack
uid, gid [ 65534, 0 ]
verbose unpackTarget /usr/lib/node_modules/contextify
silly gunzTarPerm modes [ '755', '644' ]
silly afterUntar undefined
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package/wscript
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package/.npmignore
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package/package.json
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package/README.md
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package/LICENSE.txt
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package/changelog
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package/test
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package/test/contextify.js
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package/lib
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package/lib/contextify.js
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package/src
silly asyncMap in gTP /usr/lib/node_modules/___contextify.npm/package/src/contextify.cc
verbose gunzed /usr/lib/node_modules/___contextify.npm/package
verbose rm'ed /usr/lib/node_modules/contextify
verbose renamed [ '/usr/lib/node_modules/___contextify.npm/package',
verbose renamed '/usr/lib/node_modules/contextify' ]
verbose has wscript [ undefined,
verbose has wscript { file: '/usr/lib/node_modules/contextify/package.json',
verbose has wscript contributors: false,
verbose has wscript serverjs: false,
verbose has wscript wscript: true } ]
verbose caching /usr/lib/node_modules/contextify/package.json
verbose loadDefaults [email protected]
info preinstall [email protected]
verbose unsafe-perm in lifecycle false
verbose Setting uid from 0 nobody
verbose stack at uid setting Error
verbose stack at uid setting at exec (/usr/lib/node_modules/npm/lib/utils/exec.js:35:17)
verbose stack at uid setting at Array.0 (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:141:5)
verbose stack at uid setting at EventEmitter._tickCallback (node.js:192:40)
silly exec sh "-c" "node-waf clean || (exit 0); node-waf configure build"
silly spawning [ 'sh',
silly spawning [ '-c', 'node-waf clean || (exit 0); node-waf configure build' ],
silly spawning '/usr/lib/node_modules/contextify' ]
info [email protected] Failed to exec preinstall script
ERR! error installing [email protected]
info unbuild /usr/lib/node_modules/contextify
verbose from cache /usr/lib/node_modules/contextify/package.json
info preuninstall [email protected]
info uninstall [email protected]
verbose unbuild [email protected] [ true, '/usr/lib/node_modules', '/usr/lib/node_modules' ]
info postuninstall [email protected]
verbose installOne cb [email protected]
ERR! [email protected] preinstall: node-waf clean || (exit 0); node-waf configure build
ERR! sh "-c" "node-waf clean || (exit 0); 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 || (exit 0); 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 2.6.35.4-rscloud
ERR! command "node" "/usr/bin/npm" "install" "-g" "contextify"
ERR! cwd /root/scraper
ERR! node -v v0.6.10
ERR! npm -v 1.1.1
ERR! code ELIFECYCLE
ERR! message [email protected] preinstall: node-waf clean || (exit 0); node-waf configure build
ERR! message sh "-c" "node-waf clean || (exit 0); node-waf configure build" failed with 127
ERR! errno {}
verbose exit [ 1, true ]

@brianmcd
Copy link
Owner

Looks like you're missing node-waf. Did you install node from a repository? If so, you need the -dev package to get node-waf. If you installed from source, try re-installing and see if that helps.

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