Closed fivdi closed 6 years ago
It looks like it's now possible to install Node.js native modules with Buster testing images.
It works with bone-debian-buster-iot-armhf-2018-10-07-4gb.img.xz downloaded from https://debian.beagleboard.org/images/rcn-ee.net/rootfs/bb.org/testing/2018-10-07/buster-iot/
@fivdi yeah, npm just landed about a month ago:
https://tracker.debian.org/pkg/npm
after it had been removed..
I have a feeling we aren't going to get another bump of nodejs from Jeremy, he seems to busy with day job:
https://tracker.debian.org/pkg/nodejs
I'd really like to see nodejs v10.x to land in buster before freeze..
Regards,
NodeSource provide armhf Node.js v10.x binary distributions for Debian 8, 9, 10 and unstable. I'm not sure if you could use them or want to use them for creating images though.
BoneScript doesn't install successfully with Node.js v10.x. The output of calling npm i bonescript
on a BeagleBone Black with Node.js v10.12.0 and npm v6.4.1 can be seen here. Some of the compile errors can be eliminated by upgrading optionalDependencies in BoneScripts package.json
but some can't, for example, the errors from the i2c
dependency.
I'm not sure if this is the correct repository for this issue so my apologies if it isn't.
Node.js v8.9.4 which is provided with Buster image
bone-debian-buster-iot-armhf-2018-02-04-4gb.img.xz
at https://rcn-ee.net/rootfs/bb.org/testing/2018-02-04/buster-iot/ can't be used to install native modules (modules that contain C/C++ code) on a PocketBeagle.For example, attempting to install native module
i2c-bus
withnpm install i2c-bus
results in a permission denied error. Please scroll at the way to the right to see the permission denied error:This appears to be a problem with all native modules and not only with
i2c-bus
. Callingnpm install i2c-bus
doesn't compile the C/C++ code and nothing actually gets installed.Using
sudo
and--unsafe-perm
doesn't resolve the issue:If Node.js v8.9.4 is downloaded from nodejs.org at https://nodejs.org/dist/v8.9.4/ and installed everything functions correctly. It's possible to install
i2c-bus
without errors.