BiancoRoyal/node-red-contrib-modbus

Option to disable serialport on installation

KokXinTan opened this issue · 0 comments

Hi,

I currently have node red installed on a Kubernetes cluster. Due to the stateless nature of pods on kubernetes, serialport fails on installation (refer to logs below).

Is there any option to install this without installing serialport? As I only need the TCP IP module.

Logs:

476 verbose cwd /data/node_modules
477 verbose Linux 5.15.0-46-generic
478 verbose node v16.16.0
479 verbose npm v8.11.0
480 error code 1
481 error path /data/node_modules/@serialport/bindings
482 error command failed
483 error command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
484 error (node:88) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
484 error (Use node --trace-warnings ... to show where the warning was created)
484 error prebuild-install warn install No prebuilt binaries found (target=16.16.0 runtime=node arch=x64 libc=musl platform=linux)
484 error gyp info it worked if it ends with ok
484 error gyp info using node-gyp@9.1.0
484 error gyp info using node@16.16.0 | linux | x64
484 error gyp info find Python using Python version 3.10.5 found at "/usr/bin/python3"
484 error gyp WARN install got an error, rolling back install
484 error gyp ERR! configure error
484 error gyp ERR! stack Error: ENOENT: no such file or directory, mkdir '/.cache'
484 error gyp ERR! System Linux 5.15.0-46-generic
484 error gyp ERR! command "/usr/local/bin/node" "/data/node_modules/.bin/node-gyp" "rebuild"
484 error gyp ERR! cwd /data/node_modules/@serialport/bindings
484 error gyp ERR! node -v v16.16.0
484 error gyp ERR! node-gyp -v v9.1.0
484 error gyp ERR! not ok
485 verbose exit 1
486 timing npm Completed in 12872ms
487 verbose unfinished npm timer reify 1661487359763
488 verbose unfinished npm timer reify:build 1661487369568
489 verbose unfinished npm timer build 1661487369569
490 verbose unfinished npm timer build:deps 1661487369569
491 verbose unfinished npm timer build:run:install 1661487369576
492 verbose unfinished npm timer build:run:install:node_modules/@serialport/bindings 1661487369577
493 verbose code 1
494 error A complete log of this run can be found in:
494 error /data/.npm/_logs/2022-08-26T04_15_59_490Z-debug-0.log

Regards