Error when installing node

Hi all,

I'm trying to install the zwave-js node and I get an error each time. I'm running Node-RED on Rpi4 via Home Assistant.

Error Logs:


2021-02-20T01:11:20.117Z Install : node-red-contrib-zwave-js 1.4.0

2021-02-20T01:11:20.472Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-zwave-js@1.4.0
2021-02-20T01:11:55.984Z [out]
2021-02-20T01:11:55.984Z [out] > mdns@2.5.1 install /config/node-red/node_modules/mdns
2021-02-20T01:11:55.984Z [out] > node-gyp rebuild
2021-02-20T01:11:55.984Z [out]
2021-02-20T01:11:59.043Z [err] gyp
2021-02-20T01:11:59.044Z [err] ERR!
2021-02-20T01:11:59.044Z [err] build error
2021-02-20T01:11:59.045Z [err] gyp
2021-02-20T01:11:59.046Z [err] ERR! stack Error: not found: make
2021-02-20T01:11:59.046Z [err] gyp ERR! stack
2021-02-20T01:11:59.046Z [err] at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
2021-02-20T01:11:59.046Z [err] gyp ERR!
2021-02-20T01:11:59.046Z [err] stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
2021-02-20T01:11:59.046Z [err] gyp
2021-02-20T01:11:59.046Z [err] ERR! stack
2021-02-20T01:11:59.046Z [err] at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
2021-02-20T01:11:59.046Z [err] gyp ERR! stack
2021-02-20T01:11:59.046Z [err] at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
2021-02-20T01:11:59.046Z [err] gyp ERR!
2021-02-20T01:11:59.047Z [err] stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2021-02-20T01:11:59.047Z [err] gyp
2021-02-20T01:11:59.047Z [err] ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2021-02-20T01:11:59.047Z [err] gyp
2021-02-20T01:11:59.047Z [err] ERR! stack at FSReqCallback.oncomplete (fs.js:183:21)
2021-02-20T01:11:59.048Z [err] gyp ERR!
2021-02-20T01:11:59.048Z [err] System Linux 5.4.83-v8
2021-02-20T01:11:59.048Z [err] gyp
2021-02-20T01:11:59.048Z [err] ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2021-02-20T01:11:59.048Z [err] gyp
2021-02-20T01:11:59.048Z [err] ERR! cwd /config/node-red/node_modules/mdns
2021-02-20T01:11:59.048Z [err] gyp
2021-02-20T01:11:59.048Z [err] ERR!
2021-02-20T01:11:59.049Z [err] node -v
2021-02-20T01:11:59.049Z [err] v14.15.5
2021-02-20T01:11:59.049Z [err] gyp ERR!
2021-02-20T01:11:59.049Z [err] node-gyp -v v5.1.0
2021-02-20T01:11:59.049Z [err] gyp
2021-02-20T01:11:59.049Z [err] ERR! not ok
2021-02-20T01:11:59.083Z [out]
2021-02-20T01:11:59.083Z [out] > @serialport/bindings@9.0.4 install /config/node-red/node_modules/@serialport/bindings
2021-02-20T01:11:59.083Z [out] > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2021-02-20T01:11:59.083Z [out]
2021-02-20T01:12:00.044Z [err] prebuild-install
2021-02-20T01:12:00.045Z [err] WARN install No prebuilt binaries found (target=14.15.5 runtime=node arch=arm64 libc=musl platform=linux)
2021-02-20T01:12:03.425Z [err] gyp
2021-02-20T01:12:03.426Z [err] ERR!
2021-02-20T01:12:03.426Z [err] build error
2021-02-20T01:12:03.427Z [err] gyp
2021-02-20T01:12:03.428Z [err] ERR! stack Error: not found: make
2021-02-20T01:12:03.428Z [err] gyp ERR! stack
2021-02-20T01:12:03.428Z [err] at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
2021-02-20T01:12:03.428Z [err] gyp ERR!
2021-02-20T01:12:03.428Z [err] stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
2021-02-20T01:12:03.428Z [err] gyp
2021-02-20T01:12:03.428Z [err] ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
2021-02-20T01:12:03.428Z [err] gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
2021-02-20T01:12:03.428Z [err] gyp ERR!
2021-02-20T01:12:03.429Z [err] stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2021-02-20T01:12:03.429Z [err] gyp ERR!
2021-02-20T01:12:03.429Z [err] stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2021-02-20T01:12:03.429Z [err] gyp
2021-02-20T01:12:03.429Z [err] ERR! stack at FSReqCallback.oncomplete (fs.js:183:21)
2021-02-20T01:12:03.430Z [err] gyp ERR!
2021-02-20T01:12:03.430Z [err] System Linux 5.4.83-v8
2021-02-20T01:12:03.430Z [err] gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2021-02-20T01:12:03.430Z [err] gyp ERR!
2021-02-20T01:12:03.430Z [err] cwd /config/node-red/node_modules/@serialport/bindings
2021-02-20T01:12:03.430Z [err] gyp
2021-02-20T01:12:03.430Z [err] ERR! node -v v14.15.5
2021-02-20T01:12:03.430Z [err] gyp ERR! node-gyp -v v5.1.0
2021-02-20T01:12:03.430Z [err] gyp ERR!
2021-02-20T01:12:03.431Z [err] not ok
2021-02-20T01:12:06.152Z [err] npm WARN
2021-02-20T01:12:06.152Z [err] optional SKIPPING OPTIONAL DEPENDENCY: mdns@2.5.1 (node_modules/mdns):
2021-02-20T01:12:06.153Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mdns@2.5.1 install: node-gyp rebuild
2021-02-20T01:12:06.153Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2021-02-20T01:12:06.154Z [err]
2021-02-20T01:12:06.189Z [err] npm ERR!
2021-02-20T01:12:06.189Z [err] code ELIFECYCLE
2021-02-20T01:12:06.189Z [err] npm ERR!
2021-02-20T01:12:06.190Z [err] errno 1
2021-02-20T01:12:06.207Z [err] npm ERR! @serialport/bindings@9.0.4 install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2021-02-20T01:12:06.207Z [err] npm ERR! Exit status 1
2021-02-20T01:12:06.207Z [err] npm ERR!
2021-02-20T01:12:06.207Z [err] npm ERR! Failed at the @serialport/bindings@9.0.4 install script.
2021-02-20T01:12:06.207Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-02-20T01:12:06.235Z [err]
2021-02-20T01:12:06.235Z [err] npm
2021-02-20T01:12:06.235Z [err] ERR! A complete log of this run can be found in:
2021-02-20T01:12:06.235Z [err] npm ERR! /root/.npm/_logs/2021-02-20T01_12_06_222Z-debug.log
2021-02-20T01:12:06.273Z rc=1

Hi, something that stands out for me is the above... is make installed and accessible?

You need to install the package build-essential.
sudo apt install build-essential

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.