-
Notifications
You must be signed in to change notification settings - Fork 57
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
Failing to install on Raspberry Pi Zero 2 W #116
Comments
I don't have a Raspberry Pi Zero 2 W and I'm afraid I can't reproduce the error on a Raspberry Pi 4. If I run the following commands on a Raspberry Pi 4:
Everything functions as expected and this is what is see:
Are you perhaps installing an old version of i2c-bus? |
Thanks for looking into this so quickly! I tried what you suggested (plus an After a quick look through the package tree, I think the culprit might be:
... as my test directory has |
For anybody else running into this issue, manually installing the correct version of nan and then re-running the i2c-bus installation seems to have done the trick. I haven't had time to verify the installation yet, but at least it went through without any error messages. |
@gunnarsson Thank you for this additional information and for opening the issue initially. I'll reopen the issue as there is a problem with the i2c-bus dependencies. As can be seen here i2c-bus@5.2.2 depends on nan version "^2.14.2". This dependency needs to be updated to "^2.17.0". |
All right, that explains why it failed in the first place given these circumstances. Thanks again for looking into this! |
Yes, that explains it. |
The problem should be resolved with i2c-bus@5.2.3 which has just been published on npm. @gunnarsson Once again, thank you for reporting this issue. |
Fantastic! I re-started with the new version, and I can confirm that the installation went smoothly. |
I'm having a hard time installing i2c-bus on my Raspberry Pi Zero 2 W. I'm running Node 20.4.0 and npm 9.8.1. The docs clearly state that Node versions 10, 12, 14, 15 and 16 are supported, but I can install the module locally on my Mac with Node 20 without any issues. Is there anything I can do to work around this problem myself?
Here's what I believe is the relevant part of the npm log:
Any help would be much appreciated!
Thanks,
Martin
The text was updated successfully, but these errors were encountered: