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

contextify fails to install #12

Closed
glennsc opened this issue Dec 21, 2011 · 4 comments
Closed

contextify fails to install #12

glennsc opened this issue Dec 21, 2011 · 4 comments

Comments

@glennsc
Copy link

glennsc commented Dec 21, 2011

Does contextify require node-waf when installing via npm? I realize Windows is funky but here's the console output I get installing with node v0.6.5 and npm 1.1.0-beta-7

C:\Users\Glenn\Documents\nodeProjects\techRadar>npm install contextify
npm WARN htmlparser@1.7.3 package.json: bugs['web'] should probably be bugs['url']
npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/contextify

> contextify@0.0.7 preinstall C:\Users\Glenn\Documents\nodeProjects\techRadar\no
de_modules\contextify
> node-waf clean || (exit 0); node-waf configure build

node-waf was unexpected at this time.
npm ERR! error installing contextify@0.0.7
npm ERR! contextify@0.0.7 preinstall: `node-waf clean || (exit 0); node-waf configure build`
npm ERR! `cmd "/c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the contextify@0.0.7 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 Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "contextify"
npm ERR! cwd C:\Users\Glenn\Documents\nodeProjects\techRadar
npm ERR! node -v v0.6.5
npm ERR! npm -v 1.1.0-beta-7
npm ERR! code ELIFECYCLE
npm ERR! message contextify@0.0.7 preinstall: `node-waf clean || (exit 0); node-waf configure build`
npm ERR! message `cmd "/c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Glenn\Documents\nodeProjects\techRadar\npm-debug.log
npm not ok
@glennsc glennsc closed this as completed Dec 21, 2011
@brianmcd
Copy link
Owner

Unfortunately it does require node-waf to install from npm. There are 2 forks that enable builds on Windows outside of npm, though:

The second one has a pre-built binary in the build/Release folder.

@dobesv
Copy link

dobesv commented Dec 25, 2011

For those who are used to the magic of npm, to use the pre-built binary from Benvie just download the ZIP file at https://github.com/Benvie/contextify/zipball/master , extract it into your node_modules folder, and then rename the folder to "contextify". Note that this binary only works in windows with node 0.6, so be careful if you're sharing your node_modules folder via source control with non-windows users.
(edit: fixed the link as pointed out in the next comment)

@brianmcd
Copy link
Owner

@dobesv Thanks for posting the instructions. I'll get something on the Contextify README soon. I think you mean https://github.com/Benvie/contextify/zipball/master for the zip file.

@TooTallNate
Copy link
Contributor

See #17 for Windows support added through gyp and node-gyp.

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

4 participants