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

Windows 8.1 install fails @ 'sh' is not recognised #23

Closed andywade84 closed 10 years ago

andywade84 commented 10 years ago

I am a complete beginner to node.js and git so please reply with simple do-this do that etc. Assume I Know nothing about compiling libraries using git or etc.

I have installed the python and git npm packages and I am runnig the latest version of node and npm (installed today)

I get an error regarding

node-hid@0.3.1 preinstall c:\Windows\System32\node_modules\node-hid sh get hidapi.sh 'sh' is not recognised as an internal or external command operable program of batch file.

Been googling for about an hour finding similar issues but have not come across a solution.

andrew commented 10 years ago

I don't really have much windows experience, but I believe people use http://www.cygwin.com/ as a shell replacement on windows to excute commands in a more linux-like environment but milage may vary.

shiftkey commented 10 years ago

You're gonna need a POSIX environment to get commands like sh running on Windows.

If you're not familiar with getting Cygwin setup, download GitHub for Windows - we ship a Git Shell environment that should cover what you need...

andrew commented 10 years ago

Thanks for the tip @shiftkey!

MRdNk commented 10 years ago

I use the git bash shell on windows. http://git-scm.com/download/win

andywade84 commented 10 years ago

Thanks all. I didnt try running npm in git shell! That seems to have done the trick and lets me get the package and the dependancies I need. I was lying about being a total noob - I've used git a few times to get Unreal Engine 4 bits.

Maybe pop something in readme about using Git shell for windows users?