'node-gyp rebuild' installation error when adding a package to meteor app in Windows 7


I was trying to add a package (mizzao:turkserver) to my Meteor application, but I kept getting this error:

mizzao:turkserver: updating npm dependencies – request, libxmljs,
validator, querystring, async, deepmerge…
gypnpm ERR! Windows_NT 6.1.7601
npm ERR! argv
“install” "libxmljs@0.8.1"
npm ERR! node v0.10.36
npm ERR! npm v2.7.3

npm ERR! libxmljs@0.8.1 install: node-gyp rebuild
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the libxmljs@0.8.1 install script ‘node-gyp rebuild’.
npm ERR! This is most likely a problem with the libxmljs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls libxmljs
npm ERR! There is likely additional logging output above.

=> Babel active on file extensions: es6.js, es6, jsx
=> Errors while adding packages:

While building package mizzao:turkserver:
error: couldn’t install npm package

I am developing my Meteor application on a Windows 7 machine and from what I have been able to gather from posts on forums, the error seems to be related to that fact (interaction between npm and Windows - I did not find any posts describing the same problem on Linux machines).

I’ve already tried installing the latest Python version and MS Visual Studio 2013 as suggested here: https://github.com/TooTallNate/node-gyp#installation, as well as setting some environment variables as suggested here: https://github.com/atom/atom/issues/2754. But none of those helped.

Any help would be greatly appreciated!


There’s quite a bit of setup involved, and a lot of changes seem to be in the pipeline for node-gyp

Look over this readme, it helped me quite a bit: https://github.com/nodejs/node-gyp