-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node 20 Support #177
Comments
RPIO can only be downloaded on the raspberry pi. If you wish to develop with your mac, you may npm install @types/rpio. |
@hoang-danny05 I tried this to see if it worked but didn't. From the trace the issue is internal to Node 20 and how rpio interfaces with it (not something as simple as types). Some other projects have reported this (see below links for discussions regarding this). P.S. I have also updated to the latest Node 20 release through nvm (20.10.0) and this is still an issue. |
Found this from an electron issue about the same. The underlying fix is released in nan version 2.17.0; However rpio is using 2.14.1 ( Line 15 in 52ae538
electron/electron#35193 (comment) The underlying fix is just to update the nan dependency. If I have time I might try and get a PR for this. |
Deleting my lock file with a fresh node_modules install resolved rpio's nan version to 2.18.0 |
@pdillon Thanks for that I can confirm that this comment worked as a work around. I still think the minimum version of the library should be updated and I've created PR #180 that includes this change. @jperkin if you would like to review this and push out a new version that would be great. @jperkin this issue can be closed now regardless of if you choose to do anything with my PR. Just want to make sure you see this issues status before it goes from "open" issues. |
I've been using this library with node 14, 16, 18 however when I have started the process of lifting my project to node 20 (the now LTS) I get the following errors when trying to install rpio.
Error message
Setup
Although this error is from my M1 macbook (with NVM) this also fails in GitHub Action CI.
The text was updated successfully, but these errors were encountered: