Node-red does not run
See original GitHub issueProblem/Motivation
Node-red add-on stopping with errors
Expected behavior
Normal function
Actual behavior
Several errors during Hassio restart and when started manually
This log is produced:
[cont-init.d] 81-npm-packages.sh: executing…
serialport@6.2.2 install /opt/node_modules/modbus-serial/node_modules/serialport prebuild-install || node-gyp rebuild prebuild-install WARN install No prebuilt binaries found (target=8.14.0 runtime=node arch=arm platform=linux) 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 FSReqWrap.oncomplete (fs.js:152:21) gyp ERR! System Linux 4.14.98-v7 gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /opt/node_modules/modbus-serial/node_modules/serialport gyp ERR! node -v v8.14.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! serialport@6.2.2 install:
prebuild-install || node-gyp rebuildnpm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serialport@6.2.2 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! /root/.npm/_logs/2019-02-26T12_00_48_198Z-debug.log FATAL: Failed installing npm package node-red-contrib-modbus [cont-init.d] 81-npm-packages.sh: exited 1. [cont-finish.d] executing container finish scripts… [cont-finish.d] 99-message.sh: executing…
Oops! Something went wrong.We are so sorry, but something went terribly wrong when starting or running this add-on.
Be sure to check the log above, line by line, for hints.
[cont-finish.d] 99-message.sh: exited 0. [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal.
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (8 by maintainers)

Top Related StackOverflow Question
@esnil The longer startup times are expected, since well, it needs to compile the code.
The main problem is with
node-red-contrib-modbus, they are behind on their dependency updates.Thanks for letting me know it worked out @esnil 👍
They are only used / available during the container build and removed before finishing.