Comments (3)
Node.js v0.10.0, which was the version used during the above install, is very old and no longer supported by nan. i2c-bus depends on nan. nan does support Node.js v0.10, but only v0.10.29 or higher. It looks like the install was performed on a Raspberry Pi 2. The latest version of Raspbian Jessie comes with Node.js v0.10.29 pre-installed, but unfortunately it's a broken version of Node.js. See here for further information.
The Node.js Foundation provides binary distributions of Node.js v4.0.0 and higher for the Rapsberry Pi 1 and 2. These binary distributions can be found in the correspondingly named directory here. For example, the binaries for Node.js v4.2.6 are here. The armv6l distribution is for the Raspberry Pi 1 and the armv7l distribution is for the Raspberry Pi 2.
I'd suggest using a newer version of Node.js, for example, v4.2.6.
from i2c-bus.
Thanks. it helped.
from i2c-bus.
That's good to hear :)
from i2c-bus.
Related Issues (20)
- Aborting with `malloc(): invalid size (unsorted)` HOT 3
- Support for 16 bit command/index HOT 3
- Does this library support different speeds? HOT 3
- installation fails with docker on ARM64 (raspberry PI 4B) HOT 2
- .openSync() works async way HOT 8
- index.d.ts HOT 4
- Crashing when declared and run HOT 2
- cannot detect i2c device of shtc3
- HC-SR04 Ultrasonic Sensor example on i2c-bus HOT 3
- writeI2cBlockSync returns a PromisifiedBus rather than the suggested number of bytes written HOT 5
- Can't it be used on orange pi 3 LTS? HOT 1
- Failing to install on Raspberry Pi Zero 2 W HOT 8
- Slave mode support? HOT 1
- Asistance with reading a register HOT 3
- Approach for device abstraction layer HOT 5
- Error: EIO, Input/output error HOT 2
- Question - Thread Safety/Mutexing - Are the methods on an I2CBus thread safe on a RaspberryPi in Node.JS? HOT 2
- How to list available adapters? HOT 6
- Error HOT 3
- Install fails on macOS Big Sur (11.1) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i2c-bus.