node.js - ‘node-gyp rebuild’ installation error when adding a package to meteor app in Windows 7 -


i trying add package (mizzao:turkserver) meteor application, kept getting error:

mizzao:turkserver: updating npm dependencies -- request, libxmljs, validator, querystring, async, deepmerge...   gypnpm err! windows_nt 6.1.7601   npm err! argv   "c:\\users\\pc4all\\appdata\\local\\.meteor\\packages\\meteor-tool\\1.1.3\\mt-os .windows.x86_32\\dev_bundle\\bin\\\\node.exe" "c:\\users\\pc4all\\appdata\\local\\.meteor\\packages\\meteor-tool\\1.1.3\\mt-os .windows.x86_32\\dev_bundle\\bin\\node_modules\\npm\\bin\\npm-cli.js"   "install" "libxmljs@0.8.1"   npm err! node v0.10.36   npm err! npm  v2.7.3   npm err! code elifecycle    npm err! libxmljs@0.8.1 install: `node-gyp rebuild`   npm err! exit status 7   npm err!   npm err! failed @ libxmljs@0.8.1 install script 'node-gyp rebuild'.   npm err! problem libxmljs package,   npm err! not npm itself.   npm err! tell author fails on system:   npm err!     node-gyp rebuild   npm err! can info via:   npm err!     npm owner ls libxmljs   npm err! there 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 developing meteor application on windows 7 machine , have been able gather posts on forums, error seems related fact (interaction between npm , windows - did not find posts describing same problem on linux machines).

i've tried installing latest python version , ms visual studio 2013 suggested here: https://github.com/tootallnate/node-gyp#installation, setting environment variables suggested here: https://github.com/atom/atom/issues/2754. none of helped.

any appreciated!

as described in this comment, seems issue python path being set incorrectly npm, meteor's distribution of npm isn't hooking correctly. linux distros come python, windows doesn't, correlated running windows.

it can fixed making sure python installed, running following command:

npm config set python c:\python27\python.exe 

the use of old libxmljs because mizzao:turkserver dependent on relatively old node mturk api, i'd wean off of @ point, isn't such high priority @ moment.

see also:


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -