{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/4802","labels_url":"https://api.github.com/repos/meteor/meteor/issues/4802/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/4802/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/4802/events","html_url":"https://github.com/meteor/meteor/issues/4802","id":96937242,"number":4802,"title":"'node-gyp rebuild' installation error when adding a package to a meteor app","user":{"login":"ZJoveski","id":12628810,"avatar_url":"https://avatars.githubusercontent.com/u/12628810?v=3","gravatar_id":"","url":"https://api.github.com/users/ZJoveski","html_url":"https://github.com/ZJoveski","followers_url":"https://api.github.com/users/ZJoveski/followers","following_url":"https://api.github.com/users/ZJoveski/following{/other_user}","gists_url":"https://api.github.com/users/ZJoveski/gists{/gist_id}","starred_url":"https://api.github.com/users/ZJoveski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZJoveski/subscriptions","organizations_url":"https://api.github.com/users/ZJoveski/orgs","repos_url":"https://api.github.com/users/ZJoveski/repos","events_url":"https://api.github.com/users/ZJoveski/events{/privacy}","received_events_url":"https://api.github.com/users/ZJoveski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Windows","name":"Project:Windows","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-07-24T00:56:17Z","updated_at":"2015-11-17T22:38:16Z","closed_at":null,"body":"I was trying to add a package (mizzao:turkserver) to my Meteor application, but I kept getting this error:\r\n\r\nmizzao:turkserver: updating npm dependencies -- request, libxmljs, validator, querystring, async, deepmerge...\r\ngypnpm ERR! Windows_NT 6.1.7601\r\nnpm ERR! argv\r\n\"C:\\Users\\Zlatko\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.1.3\\mt-os .windows.x86_32\\dev_bundle\\bin\\\\node.exe\" \"C:\\Users\\Zlatko\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.1.3\\mt-os .windows.x86_32\\dev_bundle\\bin\\node_modules\\npm\\bin\\npm-cli.js\"\r\n\"install\" \"libxmljs@0.8.1\"\r\nnpm ERR! node v0.10.36\r\nnpm ERR! npm v2.7.3\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! libxmljs@0.8.1 install: node-gyp rebuild\r\nnpm ERR! Exit status 7\r\nnpm ERR!\r\nnpm ERR! Failed at the libxmljs@0.8.1 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the libxmljs package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR! node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR! npm owner ls libxmljs\r\nnpm ERR! There is likely additional logging output above.\r\n\r\n=> Babel active on file extensions: es6.js, es6, jsx\r\n=> Errors while adding packages:\r\n\r\nWhile building package mizzao:turkserver:\r\nerror: couldn't install npm package\r\n\r\nI 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).\r\n\r\nI'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.\r\n\r\nThe error can be reproduced with the following commands:\r\n\r\n> git clone https://github.com/ZJoveski/meteor_node-gyp_rebuild_windows_bug.git meteor_node-gyp_rebuild_windows_bug\r\n\r\n> cd meteor_node-gyp_rebuild_windows_bug\r\n\r\n> git clone --recursive https://github.com/HarvardEconCS/turkserver-meteor.git packages/mizzao-turkserver\r\n\r\n> meteor add mizzao:turkserver\r\n\r\nAny help would be greatly appreciated!"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/157532733","html_url":"https://github.com/meteor/meteor/issues/4802#issuecomment-157532733","issue_url":"https://api.github.com/repos/meteor/meteor/issues/4802","id":157532733,"user":{"login":"mizzao","id":2080084,"avatar_url":"https://avatars.githubusercontent.com/u/2080084?v=3","gravatar_id":"","url":"https://api.github.com/users/mizzao","html_url":"https://github.com/mizzao","followers_url":"https://api.github.com/users/mizzao/followers","following_url":"https://api.github.com/users/mizzao/following{/other_user}","gists_url":"https://api.github.com/users/mizzao/gists{/gist_id}","starred_url":"https://api.github.com/users/mizzao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mizzao/subscriptions","organizations_url":"https://api.github.com/users/mizzao/orgs","repos_url":"https://api.github.com/users/mizzao/repos","events_url":"https://api.github.com/users/mizzao/events{/privacy}","received_events_url":"https://api.github.com/users/mizzao/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T22:38:16Z","updated_at":"2015-11-17T22:38:16Z","body":"On Meteor 1.2, still getting the original error (`node-gyp rebuild`) as described here. Do you still think it's due to the long path name problem, or something else?\r\n\r\nWhat do you recommend as the best course of action to diagnose what is going on?"}}