contextify fails to install #12

glennsc opened this Issue Dec 21, 2011 · 4 comments


None yet
4 participants

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
npm http 304

> contextify@0.0.7 preinstall C:\Users\Glenn\Documents\nodeProjects\techRadar\no
> 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! 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 closed this Dec 21, 2011


brianmcd commented Dec 21, 2011

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 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 , 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 commented Dec 25, 2011

@dobesv Thanks for posting the instructions. I'll get something on the Contextify README soon. I think you mean for the zip file.


TooTallNate commented Feb 8, 2012

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

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