Closed EricSmekens closed 10 years ago
It should be possible, but I don't have a windows machine to test it on, what kind of error are you getting?
npm ERR! notsup Unsupported npm ERR! notsup Not compatible with your operating system or architecture: xbox- controller@0.4.0 npm ERR! notsup Valid OS: darwin,linux npm ERR! notsup Valid Arch: any npm ERR! notsup Actual OS: win32 npm ERR! notsup Actual Arch: x64
npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js" "install" "xbox-controller" npm ERR! cwd C:\Users\Eric\Documents\GitHub\XController npm ERR! node -v v0.10.24 npm ERR! npm -v 1.3.21 npm ERR! code EBADPLATFORM npm ERR! not ok code 0
package.json says something about darwin, linux, going to test something :)
EDIT: Added win32 to os, but node-hid uses a sh command which windows doesn't support?
Testing with node-gyp now, maybe I can tweak something for that so npm install works with that.
I think the version of node-hid needs bumping up to 0.3.1, which should fix the windows install errors.
I'd happily merge a pull request to add win32 to the os options if you can verify that it works with the latest node-hid.
@andrew I tried to install node-hid on it's own on my machine, but I can't get it to work. Neither on windows 7 or 8. I use node-gyp to configure/build it, but I seem to get an error:
I will ask on node-hid how to resolve this, when I know, I will try to open a pull request to support windows! :)
Too bad, can't get it too work. Still same issue: node-hid/node-hid#56
Seems something with my system, I think. Will ask if ian did some specific other things.
@EricSmekens, not sure what's wrong. I took out my laptop with a fresh install of Windows 7 x64, and I was able to build node-hid successfully after installing:
Okay, I have Visual Studio 2012 Express for Desktop. Going to do a fresh install of Windows 8 soon, as I awas already planning that, will let it know here when I do and still find problems.
Aside from some Visual studio/python/node-gyp issues, this is fixed by @neocotic and released in https://github.com/andrew/node-xbox-controller/releases/tag/v0.4.2
Confirmed. Installed git with linux tools and Visual Studio 2013 for Desktop and Windows SDK 8.
Working now! :) +1
No support for windows I guess. Is this something you aim for, or do you know if this is technically unpossible? If it's possible, I can look into it if I have some spare time.