BiancoRoyal/node-red-contrib-modbus

Failed to install node-red-contrib-modbus

birkinlj opened this issue · 1 comments

Which node-red-contrib-modbus version are you using?

5.23.1

What happened?

I tried to install node-red-contrib-modbus from Node-Red but it fails.

12 Sep 12:32:35 - [info] Installing module: node-red-contrib-modbus, version: 5.23.1
12 Sep 12:33:07 - [warn] Installation of module node-red-contrib-modbus failed:
12 Sep 12:33:07 - [warn] ------------------------------------------
12 Sep 12:33:07 - [warn] prebuild-install warn install /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by /home/user1/.node-red/node_modules/@serialport/bindings/build/Release/bindings.node) gyp WARN EACCES current user ("user1") does not have permission to access the dev dir "/home/user1/.cache/node-gyp/14.20.0" gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp" gyp ERR! build error gyp ERR! stack Error: not found: make gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12) gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19) gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqCallback.oncomplete (fs.js:192:21) gyp ERR! System Linux 4.15.0-192-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/user1/.node-red/node_modules/@serialport/bindings gyp ERR! node -v v14.20.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @serialport/bindings@9.2.8 install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @serialport/bindings@9.2.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user1/.npm/_logs/2022-09-12T00_33_07_897Z-debug.log
12 Sep 12:33:07 - [warn] ------------------------------------------
Error: Install failed
at /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/installer.js:285:25
at processTicksAndRejections (internal/process/task_queues.js:95:5)
12 Sep 12:33:07 - [error] Error: Install failed

Server

Other/External server

How can this be reproduced?

Installed Node-Red
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
Tried to install modbus node from manage palette

What did you expect to happen?

Installation without error

Other Information

12 Sep 12:43:42 - [info] Node-RED version: v3.0.2
12 Sep 12:43:42 - [info] Node.js version: v14.20.0
12 Sep 12:43:42 - [info] Linux 4.15.0-192-generic x64 LE

This issue is stale because it has been open 60 days with no activity. It will be closed in 30 days, but can be saved by removing the stale label or commenting.