xbox-controller-node icon indicating copy to clipboard operation
xbox-controller-node copied to clipboard

Unable to install the package

Open tgraupmann opened this issue 4 years ago • 2 comments

The dependency on node-hid is so old that the latest no longer compiles and won't install.

I tested on Windows 10 and also WSL2.

The current version:

"node-hid": "^2.1.1"

The package was created using:

"node-hid": "^0.4.0",

https://github.com/tgraupmann/xbox-controller-node/commit/941e19f39066a6e55e813c38b59c4089b2b1eb22

tgraupmann avatar Dec 14 '21 21:12 tgraupmann

I forked, updated the package version, and copied the project to its node-modules subfolder.

It's the same as running:

npm run test

I'm using an Xbox One controller and it keeps printing.

Notice: Xbox controller connected
Moving [LEFTSTICK] LEFT
Moving [LEFTSTICK] UP
Moving [RIGHTSTICK] LEFT
Moving [RIGHTSTICK] UP
Moving [LEFTSTICK] LEFT
Moving [LEFTSTICK] UP

tgraupmann avatar Dec 14 '21 21:12 tgraupmann

Hi there, I had the same issue with being unable to build.

@tgraupmann's solution worked to solve the node-hid version issue for me (Windows and Linux). Is there any possibility of this package being updated to solve these issues?

html1101 avatar May 08 '22 02:05 html1101