Closed crosofg closed 8 years ago
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.
Thanks. it helped.
That's good to hear :)
Hi I am trying to install i2c-bus module. But I am getting following error