-
Notifications
You must be signed in to change notification settings - Fork 487
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
Cannot find module 'i2c-bus' even we have npm install i2c-bus #419
Comments
I've just tried the NodeJS library and I haven't had any issues with it. The installation of And it doesn't make any sense for npm to not be able to install Just so you know, I've been doing this on my Stretch Raspbian For Robots image dated this summer (the latest one). These following details might also help you: the npm version is The version of |
please take a look at the following npmlist i2c-bus, does that mean my ic2-bus installed successfully ? Thanks npm list i2c-bus |
So it looks yeah. Was the re-installation that did the job for you? Are you now able to import the module in the console? |
no luck after reinstall , I don't know how to debug this issue, any more advice ? other modules running perfectly on my pi3 except this one, I have been hanging there for over one week :( any chance for teamviewer ? Thanks |
my node.js code is as follows, looks like serialport calling j2c-bus module, any advice would be appreciated . const SerialPort = require('serialport'); |
working around it as follows: |
but we hit another error: pi@raspberrypi:~/workspace/rapiro-iotf $ sudo node robot_main.js TypeError: SoundAnalogSensor is not a constructor |
node.js code: board = new Board({
|
I have opened a new issue: https://forum.dexterindustries.com/t/typeerror-soundanalogsensor-is-not-a-constructor/5074 |
We hit a weird error(
Error: Cannot find module 'i2c-bus'
) even we have donenpm install i2c-bus
, we have also checked:the error is as follows, please kindly be advised:
The text was updated successfully, but these errors were encountered: