andrew / node-xbox-controller

:video_game: [UNMAINTAINED] Interface for Xbox 360 game controller into Node.js
http://libraries.io/npm/xbox-controller
MIT License
270 stars 49 forks source link

Error installing on Window 8.1 #26

Closed mapaiva closed 9 years ago

mapaiva commented 9 years ago

Hi everbody. I'm tryed to install the xbox controller in window 8.1 and I'm having the following error

784 verbose true,d:\Projetos\Xbox Controller\node_modules,d:\Projetos\Xbox Controller\node_modules unbuild xbox-controller@0.5.0 785 info postuninstall xbox-controller@0.5.0 786 error node-hid@0.3.2 install: sh install.sh 786 error Exit status 1 787 error Failed at the node-hid@0.3.2 install script. 787 error This is most likely a problem with the node-hid package, 787 error not with npm itself. 787 error Tell the author that this fails on your system: 787 error sh install.sh 787 error You can get their info via: 787 error npm owner ls node-hid 787 error There is likely additional logging output above. 788 error System Windows_NT 6.2.9200 789 error command "c:\Program Files\nodejs\node.exe" "c:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "xbox-controller" 790 error cwd d:\Projetos\Xbox Controller 791 error node -v v0.10.31 792 error npm -v 1.4.23 793 error code ELIFECYCLE 794 verbose exit [ 1, true ]

I run the npm install by git bash and already has the python installed. Any ideia?

Thank you

andrew commented 9 years ago

That's very odd, are you able to run npm install node-hid successfully?

mapaiva commented 9 years ago

Nop, I'm seeing that the problem happends because the failure of the node-hid installation. Anyway I'll try see another options to install node-hid or go to linux kkk. Thanks

mapaiva commented 9 years ago

Finally I've got to install node-hid the problem was caused by a wrong instalation of node-gyp.

If anyone will have the same dificulty this can help https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup

Just remove the node-gyp npm remove node-gyp -g

follow the steps and install again

npm install node-gyp -g