cncjs / cncjs-pendant-ps3

Dual Shock / PS3 Bluetooth Remote Pendant for CNCjs
MIT License
22 stars 24 forks source link

I'm getting a bunch of warnings followed by errors #9

Open RHill051 opened 2 years ago

RHill051 commented 2 years ago

When I run the command "sudo npm install -g cncjs-pendant-ps3 --unsafe-perm # Install Globally" I get a bunch of messages about "npm WARN deprecated. . ." eventually I get a compilation terminated and then a bunch of "gyp ERR!" Is this feature still alive or is it too outdated to work with a PS4 controller? The instructions for connecting the controller didn't work for me but I was able to get it connected and test it using a different article https://salamwaddah.com/blog/connecting-ps4-controller-to-raspberry-pi-via-bluetooth image

balthisar commented 2 years ago

+1

MitchBradley commented 2 years ago

The warnings can probably be ignored. Node.js tends to spit our warnings for every little thing, under the mistaken idea that nobody other than a full developer would ever use it.

The error is what is important. I means that you must install libusb.h before retrying the npm install. To do that, you can try running this command

sudo apt install libusb-dev

If that does not work, I can't help you. Also, I would be a little surprised if ps3 code works with a ps4 controller.

Most of the cncjs pendants were written by people who posted them, then disappeared without providing any support.