y_bobkova y_bobkova - 6 months ago 94
Node.js Question

Windows 8 : `node-gyp rebuild` Exit status 1 installing contextify as dependency of zombie

I'm trying to install zombie js, and get this error:

> contextify@0.1.8 install
C:\Users\User\Documents\ArbeitPhilipp\clieman\billing\node_modules\zombie\node_modules\jsdom\node_modules\contextify
> node-gyp rebuild

Das System kann den angegebenen Pfad nicht finden.

C:\Users\User\Documents\ArbeitPhilipp\clieman\billing\node_modules\zombie\node_modules\jsdom\node_modules\contextify>node "C:\Program Files (x86)\nodejs\nod
e_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:980:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:771:34)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd
C:\Users\User\Documents\ArbeitPhilipp\clieman\billing\node_modules\zombie\node_modules\jsdom\node_modules\contextify
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok


I work on Windows 8 (64x)

Node: v0.10.24 (32)

npm: 1.3.21

Python: 2.7 (32)

Way to Python is in PATH (C:\Python27\python.exe;)
PYTHONPATH : C:\Python27\
PYTHON : C:\Python27\python.exe

npm install --verbose contextify 2>&1 | grep gyp


gives as output:

C:\Users\User\Documents\ArbeitPhilipp\clieman\billing\node_modules\contextify>node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\n
ode_modules\node-gyp\bin\node-gyp.js" rebuild
gyp npm verb unsafe-perm in lifecycle true
npm ERR! contextify@0.1.8 install: `node-gyp rebuild`
npm ERR! node-gyp rebuild


I've already read all issues to this topic, but no found desicion has helped me.

I would appreciate any help very much!

Answer

If someone else is coming up on this: We tracked it down (debugging by hand..) to some node binding script that executes node.exe while creating the build script for msbuild.

the binding.gyp from contextify contains: 'include_dirs': ["<!(node -e \"require('nan')\")"],

Which produces the: Das System kann den angegebenen Pfad nicht finden (The System Cannot Find the Path Specified)
Even with this knowledge that somehow python cannot call the node.exe and find the require("nan") module we gave up on this. If anywone has more insights that we do, please share. I have sleepless nights because of this ;)