bonescript: Bonescript does not run with node.js v6.x

Bonescript does not run with node.js v6.x (specifically v6.9.1). Due to the bindings package within the epoll package, see this issue: https://github.com/TooTallNate/node-bindings/issues/26

How to reproduce in bonescript:

require('bonescript')

gives the following error:

Error: Could not locate the bindings file. Tried:
 → /root/node_modules/ref/build/binding.node
 → /root/node_modules/ref/build/Debug/binding.node
 → /root/node_modules/ref/build/Release/binding.node
 → /root/node_modules/ref/out/Debug/binding.node
 → /root/node_modules/ref/Debug/binding.node
 → /root/node_modules/ref/out/Release/binding.node
 → /root/node_modules/ref/Release/binding.node
 → /root/node_modules/ref/build/default/binding.node
 → /root/node_modules/ref/compiled/6.9.1/linux/arm/binding.node
    at bindings (/root/node_modules/bindings/bindings.js:88:9)
    at Object.<anonymous> (/root/node_modules/ref/lib/ref.js:5:47)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/node_modules/ffi/lib/ffi.js:6:11)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (15 by maintainers)

Most upvoted comments

@lorenx i’ll setup a stretch/nodejsv8 build node tonight/weekend, and see where we are at…

@bennyn so all the installed nodejs packages (except for one seeed tool in the seeed image) in our repo currently support v0.12/v4/v6. So you could take the “latest” ( http://beagleboard.org/latest-images ) and change the nodesource repo from v0.12.x -> v4.x… and just apt update ; apt upgrade…

Or just grab one of the latest weekly snapshots:

https://rcn-ee.net/rootfs/bb.org/testing/2017-01-15/

as v4.x is now set as default… (really anything after 2016-11-06, has v4.x as default)

Regards,

@fivdi for our beagleboard user, we actually pre-build the npm package and just un-tar it in our custom deb packages… Having the deb package call “npm install xyz” was just too un-reliable…

Right now:

npm install bonescript

is only v0.12.x due to the i2c dependency… (and as of git of ‘today’)

Regards,

Edit: and i’d like to move to v4.x/v6.x shortly .😉

@jadonk (from left field!) If I may suggest: stick with support for only the LTS releases: https://github.com/nodejs/LTS#lts-schedule (that’s what we’re doing with Tessel 2 and so far everyone respects and appreciates the commitment)