Berny23 / LD-ToyPad-Emulator

Toy Pad Emulator for Lego Dimensions (Unofficial Fan Project)
https://github.com/Berny23/LD-ToyPad-Emulator
MIT License
249 stars 43 forks source link

npm install fails on rpi zero W, with gyp error regarding libusb-1.0 #108

Closed ChristinMilloy closed 1 year ago

ChristinMilloy commented 1 year ago

Screen Shot 2023-02-15 at 00 45 12

ChristinMilloy commented 1 year ago

Resolved by taking following steps:

  1. Used rPi image "Raspberry Pi OS Lite (Legacy)" instead of "...OS Lite (32-Bit)" (this change may not be necessary).
  2. Prior to npm install I did sudo apt-get install libusb-1.0-0-dev and sudo apt-get install libudev-dev

Perhaps the README should be updated to include this.

flashmasta commented 1 year ago

That fixed the error when installing under Bullseye Lite 32-bit (latest version of Raspberry Pi OS as of today) You just need to run sudo apt-get install libusb-1.0-0-dev and sudo apt-get install libudev-dev before running npm install

DariusR10 commented 1 year ago

"npm WARN ws@8.11.0 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself. npm WARN ws@8.11.0 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself."

After following the steps you guys gave and installing the npm it says i still need to install thoes 2 things.

How can thoes be installed?