hobbyquaker / node-red-contrib-lgtv

Node-RED Nodes to control LG webOS Smart TVs :tv:
http://flows.nodered.org/node/node-red-contrib-lgtv
MIT License
59 stars 22 forks source link

node not working anymore in latest HassOS / NodeRED setup #27

Open ojkaas opened 3 years ago

ojkaas commented 3 years ago

Hi,

I am running the following setup:

Add-on version: 7.1.1 You are running the latest version of this add-on. System: HassOS 4.12 (armv7 / raspberrypi3) Home Assistant Core: 0.114.4 Home Assistant Supervisor: 242

And I have a hunch that because of the bumped node version this node is not compiling anymore, but I do not have enough knowledge about how all this stuff works together so putting this here.

After I updated yesterday and trying to startup node-red with this node added I get the following error:

bufferutil@4.0.1 install /opt/node_modules/bufferutil node-gyp-build 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:168:21) gyp ERR! System Linux 4.19.127-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/bufferutil gyp ERR! node -v v12.18.3 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bufferutil@4.0.1 install: node-gyp-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bufferutil@4.0.1 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/2020-09-10T07_10_39_741Z-debug.log [09:10:39] FATAL: Failed to install a specified npm package [cont-init.d] user.sh: exited 1. [cont-finish.d] executing container finish scripts... [cont-finish.d] 99-message.sh: executing...

gmarquezp commented 3 years ago

On nodered config addon add system_packages: [make]

gmarquezp commented 3 years ago

Fix found: you need to add this packages on the config of the addon:

system_packages:
  - make
  - gcc
  - g++
  - libc-dev
gmarquezp commented 3 years ago

Go to Supervisor / select node red add-on / go to configuration on the upper part of the screen. the add the packages on the system_packages section of the configuration and click save.