JamesBarwell / rpi-gpio.js

Control Raspberry Pi GPIO pins with node.js
MIT License
657 stars 116 forks source link

Segmentation Error on instantiation (v2.1.7) on Pi OS #119

Closed crossoft closed 1 year ago

crossoft commented 2 years ago

user@raspberrypi:~/gpio-controller $ node Welcome to Node.js v16.15.1. Type ".help" for more information.

var gpio = require("rpi-gpio") Segmentation fault

Pi info:

user@raspberrypi:~/gpio-controller $ uname -r 5.15.32-v7+ user@raspberrypi:~/gpio-controller $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

crossoft commented 2 years ago

I'll leave this here in case it's beneficial, but I decided just to rerun npm i and all worked. First time in 50+ pi's that I've used this on. Thanks!

JamesBarwell commented 1 year ago

Not sure what happened there, but glad you were able to resolve it. Thanks for reporting it.