Hi
It looks like the installer tries to natively compile some C++ code but cannot find the required tools.
You probably already did install additional packages, e.g. make because the build fails when calling g++.
On a freshly installed V2.4 module I get:
opkg install nodejs nodejs-npm
npm install serialport
.
> serialport@2.0.5 install /home/root/node_modules/serialport
> node-pre-gyp install --fallback-to-build
gyp ERR! build error
gyp ERR! stack Error: not found: make
Installling the build essentials for native compilation works for me.
opkg install packagegroup-sdk-target
.
root@colibri-imx6:~# npm install serialport
> serialport@2.0.5 install /home/root/node_modules/serialport
> node-pre-gyp install --fallback-to-build
make: Entering directory '/home/root/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
...
TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/home/root/node_modules/serialport/build'
serialport@2.0.5 node_modules/serialport
─ bindings@1.2.1
...
─ nan@2.0.9
root@colibri-imx6:~#
Note that I did not test the resulting serialport module.