I'm trying to install an NPM package that includes binaries (sharp). Other packages load and run fine, but loading this one gives the following error:
[ 759.513] /storage/sd/node/node_modules/sharp/lib/sharp.js:34
[ 759.513] throw new Error(help.join('\n'));
[ 759.513] ^
[ 759.513]
[ 759.513] Error:
[ 759.513] Something went wrong installing the "sharp" module
[ 759.513]
[ 759.513] /storage/sd/node/node_modules/sharp/build/Release/sharp-linux-armv7.node: internal error
[ 759.513]
[ 759.513] Possible solutions:
[ 759.513] - Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
[ 759.513] - Install for the current linux-armv7 runtime: "npm install --platform=linux --arch=armv7 sharp"
[ 759.513] - Consult the installation documentation: https://sharp.pixelplumbing.com/install
[ 759.513] at Object.<anonymous> (/storage/sd/node/node_modules/sharp/lib/sharp.js:34:9)
[ 759.513] at Module._compile (internal/modules/cjs/loader.js:1072:14)
[ 759.513] quire (internal/modules/cjs/helpers.js:92:18)
[ 759.513] at Object.<anonymous> (/storage/sd/node/node_modules/sharp/lib/constructor.js:8:1)
[ 759.513] at Module._compile (internal/modules/cjs/loader.js:1072:14)
[ 759.513] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
I have used a Raspberry Pi 2B to build the necessary binaries on the ARMv7 platform, and included them in the requisite node_modules/ directory.
Is this a known limitation of the BrightSign NodeJS runtime, or is there something else I may be missing?