Hi everyone,
I’m trying to install FUXA on my Raspberry Pi 5, which is running Home Assistant Green Installation, but I’m encountering issues during the installation. Specifically, I’m seeing errors related to npm install
and missing dependencies. Here are the logs:
2024-12-22 13:39:34.584 INFO (MainThread) [supervisor.store] Loading add-ons from store: 81 all - 1 new - 0 remove
2024-12-22 13:42:21.390 INFO (MainThread) [supervisor.addons.addon] No 1a422d19_fuxa-slr addon Docker image 1a422d19/aarch64-addon-fuxa-slr found
2024-12-22 13:42:21.392 INFO (MainThread) [supervisor.docker.addon] Starting build for 1a422d19/aarch64-addon-fuxa-slr:1.0.1
2024-12-22 13:44:54.398 ERROR (MainThread) [supervisor.docker.addon] Can’t build 1a422d19/aarch64-addon-fuxa-slr:1.0.1: The command ‘/bin/sh -c npm install’ returned a non-zero code: 1
2024-12-22 13:44:54.399 ERROR (MainThread) [supervisor.docker.addon] Build log:
Step 1/16 : FROM node:14
—> b6e1f9016a80
Step 2/16 : WORKDIR /usr/src/app
—> Running in 8eedf8ff7d68
—> Removed intermediate container 8eedf8ff7d68
—> d309b2b683a7
Step 3/16 : RUN git clone link to FUXA.git
—> Running in 28642a610e21
Cloning into ‘FUXA’…
—> Removed intermediate container 28642a610e21
—> 7b5ce7d34259
Step 4/16 : WORKDIR /usr/src/app/FUXA
—> Running in 721977929a98
—> Removed intermediate container 721977929a98
—> 042bb98a1b86
Step 5/16 : WORKDIR /usr/src/app/FUXA/server
—> Running in 749a07553067
—> Removed intermediate container 749a07553067
—> 58cf7da08bb2
Step 6/16 : RUN npm install
—> Running in 3250ed916fe3
@serialport/[email protected] install /usr/src/app/FUXA/server/node_modules/@serialport/bindings-cpp
node-gyp-build
[email protected] install /usr/src/app/FUXA/server/node_modules/odbc
node-pre-gyp install --fallback-to-build
node-pre-gyp
ERR! install response status 404 Not Found on link to releases/download/v2.4.9/odbc-v2.4.9-linux-arm64-napi-v8.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v83 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error response status 404 Not Found on https github.com/IBM/node-odbc/releases/download/v2.4.9/odbc-v2.4.9-linux-arm64-napi-v8.tar.gz
make: Entering directory ‘/usr/src/app/FUXA/server/node_modules/odbc/build’
CXX(target) Release/obj.target/odbc/src/odbc.o
In file included from …/src/odbc.cpp:22:
…/src/odbc.h:37:10: fatal error: sql.h: No such file or directory
#include <sql.h>
^~~~~~~
compilation terminated.
make: *** [odbc.target.mk:125: Release/obj.target/odbc/src/odbc.o] Error 1
make: Leaving directory ‘/usr/src/app/FUXA/server/node_modules/odbc/build’
gyp ERR! build error
gyp ERR! stack Error:make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12)
gyp ERR! System Linux 6.6.62-haos-raspi
gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “build” “–fallback-to-build” “–module=/usr/src/app/FUXA/server/node_modules/odbc/lib/bindings/napi-v8/odbc.node” “–module_name=odbc” “–module_path=/usr/src/app/FUXA/server/node_modules/odbc/lib/bindings/napi-v8” “–napi_version=8” “–node_abi_napi=napi” “–napi_build_version=8” “–node_napi_label=napi-v8”
gyp ERR! cwd /usr/src/app/FUXA/server/node_modules/odbc
gyp ERR! node -v v14.21.3
gyp ERR! node-gyp -v v5.1.1
gyp ERR! not ok
node-pre-gyp
ERR! build error
node-pre-gyp ERR!
stack Error: Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/src/app/FUXA/server/node_modules/odbc/lib/bindings/napi-v8/odbc.node --module_name=odbc --module_path=/usr/src/app/FUXA/server/node_modules/odbc/lib/bindings/napi-v8 --napi_version=8 --node_abi_napi=napi --napi_build_version=8 --node_napi_label=napi-v8’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/usr/src/app/FUXA/server/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
node-pre-gyp ERR! stack
at ChildProcess.emit (events.js:400:28)
node-pre-gyp
ERR! stack
at maybeClose (internal/child_process.js:1088:16)
node-pre-gyp
ERR!
stack
at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)
node-pre-gyp ERR!
System Linux 6.6.62-haos-raspi
node-pre-gyp
ERR!
command “/usr/local/bin/node” “/usr/src/app/FUXA/server/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build”
node-pre-gyp ERR!
cwd /usr/src/app/FUXA/server/node_modules/odbc
node-pre-gyp ERR! node -v v14.21.3
node-pre-gyp ERR!
node-pre-gyp -v v1.0.11
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/src/app/FUXA/server/node_modules/odbc/lib/bindings/napi-v8/odbc.node --module_name=odbc --module_path=/usr/src/app/FUXA/server/node_modules/odbc/lib/bindings/napi-v8 --napi_version=8 --node_abi_napi=napi --napi_build_version=8 --node_napi_label=napi-v8’ (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm64”})
npm ERR! code ELIFECYCLE
npm ERR! errno
1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm
ERR! Exit status 1
npm
ERR!