Skip to content
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

Error: Cannot find module 'i2c-bus' after running our node.js #53

Closed
vkjuju opened this issue Jul 24, 2018 · 2 comments
Closed

Error: Cannot find module 'i2c-bus' after running our node.js #53

vkjuju opened this issue Jul 24, 2018 · 2 comments
Labels

Comments

@vkjuju
Copy link

vkjuju commented Jul 24, 2018

We hit a weird error(Error: Cannot find module 'i2c-bus'
) even we have done" npm install i2c-bus", we have also checked:
$npm list|grep i2c-bus
├─┬ i2c-bus@3.2.0
│ ├─┬ i2c-bus@1.2.5
│ ├── i2c-bus@3.2.0 deduped
any advice would be appreciated.

Error: Cannot find module 'i2c-bus'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/home/pi/Dexter/GrovePi/Software/NodeJS/libs/grovepi.js:2:19)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/home/pi/Dexter/GrovePi/Software/NodeJS/libs/sensors/base/sensor.js:3:20)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)

@fivdi fivdi added the question label Jul 24, 2018
@fivdi
Copy link
Owner

fivdi commented Jul 24, 2018

It looks like the code at https://github.com/DexterInd/GrovePi was cloned and that npm install was not called in the appropriate directory. I'm afraid I'm not familiar with GrovePi. Please open an issue at GrovePi as this isn't an i2c-bus issue. Perhaps someone there can help.

@fivdi fivdi closed this as completed Jul 24, 2018
@vkjuju
Copy link
Author

vkjuju commented Jul 24, 2018

@fivdi , thanks, I have created a new issue on : DexterInd/GrovePi#419

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants