Open TorbenEC opened 3 years ago
You need to add make package to your installation
I added make to the install, but then i have this error:
`2020-10-18T23:54:34.342Z Install : node-red-contrib-lgtv 1.1.0
2020-10-18T23:54:36.283Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-lgtv@1.1.0
2020-10-18T23:54:43.245Z [out]
2020-10-18T23:54:43.245Z [out] > bufferutil@4.0.1 install /config/node-red/node_modules/bufferutil
2020-10-18T23:54:43.245Z [out] > node-gyp-build
2020-10-18T23:54:43.245Z [out]
2020-10-18T23:54:45.296Z [out] make: Entering directory '/config/node-red/node_modules/bufferutil/build'
2020-10-18T23:54:45.298Z [out] CC(target) Release/obj.target/bufferutil/src/bufferutil.o
2020-10-18T23:54:45.301Z [err] make: cc: No such file or directory
2020-10-18T23:54:45.301Z [err] make: *** [bufferutil.target.mk:105: Release/obj.target/bufferutil/src/bufferutil.o] Error 127
2020-10-18T23:54:45.302Z [out] make: Leaving directory '/config/node-red/node_modules/bufferutil/build'
2020-10-18T23:54:45.306Z [err] gyp
2020-10-18T23:54:45.307Z [err]
2020-10-18T23:54:45.307Z [err] ERR! build error
2020-10-18T23:54:45.307Z [err]
2020-10-18T23:54:45.309Z [err] gyp
2020-10-18T23:54:45.309Z [err]
2020-10-18T23:54:45.309Z [err] ERR! stack
2020-10-18T23:54:45.309Z [err] Error: make
failed with exit code: 2
2020-10-18T23:54:45.309Z [err] gyp ERR!
2020-10-18T23:54:45.310Z [err] stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2020-10-18T23:54:45.310Z [err] gyp ERR!
2020-10-18T23:54:45.310Z [err] stack at ChildProcess.emit (events.js:315:20)
2020-10-18T23:54:45.310Z [err] gyp ERR!
2020-10-18T23:54:45.310Z [err] stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
2020-10-18T23:54:45.311Z [err] gyp
2020-10-18T23:54:45.312Z [err] ERR! System Linux 4.19.127-v7l
2020-10-18T23:54:45.312Z [err] gyp
2020-10-18T23:54:45.312Z [err] ERR!
2020-10-18T23:54:45.312Z [err] command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-10-18T23:54:45.312Z [err] gyp ERR!
2020-10-18T23:54:45.313Z [err] cwd /config/node-red/node_modules/bufferutil
2020-10-18T23:54:45.313Z [err] gyp ERR!
2020-10-18T23:54:45.313Z [err] node -v v12.18.3
2020-10-18T23:54:45.313Z [err] gyp ERR!
2020-10-18T23:54:45.313Z [err] node-gyp -v v5.1.0
2020-10-18T23:54:45.313Z [err] gyp ERR! not ok
2020-10-18T23:54:45.314Z [err]
2020-10-18T23:54:45.620Z [err] npm
2020-10-18T23:54:45.620Z [err] ERR! code ELIFECYCLE
2020-10-18T23:54:45.621Z [err] npm
2020-10-18T23:54:45.621Z [err] ERR! errno 1
2020-10-18T23:54:45.631Z [err] npm
2020-10-18T23:54:45.631Z [err] ERR! bufferutil@4.0.1 install: node-gyp-build
2020-10-18T23:54:45.631Z [err] npm ERR!
2020-10-18T23:54:45.631Z [err] Exit status 1
2020-10-18T23:54:45.631Z [err] npm
2020-10-18T23:54:45.631Z [err] ERR!
2020-10-18T23:54:45.631Z [err] npm
2020-10-18T23:54:45.632Z [err] ERR! Failed at the bufferutil@4.0.1 install script.
2020-10-18T23:54:45.632Z [err] npm
2020-10-18T23:54:45.632Z [err] ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-10-18T23:54:45.649Z [err]
2020-10-18T23:54:45.649Z [err] npm ERR!
2020-10-18T23:54:45.650Z [err] A complete log of this run can be found in:
2020-10-18T23:54:45.650Z [err] npm ERR!
2020-10-18T23:54:45.650Z [err] /root/.npm/_logs/2020-10-18T23_54_45_636Z-debug.log
2020-10-18T23:54:45.662Z rc=1`
I get the same error, after adding make package to my installation
What version of nodejs are you using? I'm wondering if it might be missing headers from a more recent release.
I can't tell if this package is actually maintained or not, but I'm having the same issue
I am using the hassio add on 7.2.10 which uses nodejs=12.18.4-r0
From: Andrew Gracey notifications@github.com Sent: Sunday, November 22, 2020 11:29:01 PM To: hobbyquaker/node-red-contrib-lgtv node-red-contrib-lgtv@noreply.github.com Cc: Gonzalo Marquez gmarquezp@gmail.com; Comment comment@noreply.github.com Subject: Re: [hobbyquaker/node-red-contrib-lgtv] Installation failed Node-RED (#32)
What version of nodejs are you using? I'm wondering if it might be missing headers from a more recent release.
I can't tell if this package is actually maintained or not, but I'm having the same issue
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/hobbyquaker/node-red-contrib-lgtv/issues/32#issuecomment-731919901, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ37YRU75EITHOL6PN7PVCTSRHQI3ANCNFSM4SVJKY5Q.
Unfortunately, same problem here on rpi4. Node-RED 7.2.10 HassOS 4.17 Supervisor Version 2020.11.0 Docker Version 19.03.12
Sys rel 0.118.1 O.S. 4.19.127-v7l , armv7l Python 3.8.6
2020-11-24T06:31:48.641Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-lgtv@1.1.0
2020-11-24T06:31:55.776Z [out]
2020-11-24T06:31:55.776Z [out] > bufferutil@4.0.2 install /config/node-red/node_modules/bufferutil
2020-11-24T06:31:55.776Z [out] > node-gyp-build
2020-11-24T06:31:55.776Z [out]
2020-11-24T06:31:57.831Z [out] make: Entering directory '/config/node-red/node_modules/bufferutil/build'
2020-11-24T06:31:57.832Z [out] CC(target) Release/obj.target/bufferutil/src/bufferutil.o
2020-11-24T06:31:57.837Z [err] make: cc: No such file or directory
2020-11-24T06:31:57.837Z [err] make: *** [bufferutil.target.mk:105: Release/obj.target/bufferutil/src/bufferutil.o] Error 127
2020-11-24T06:31:57.837Z [out] make: Leaving directory '/config/node-red/node_modules/bufferutil/build'
2020-11-24T06:31:57.840Z [err] gyp
2020-11-24T06:31:57.841Z [err]
2020-11-24T06:31:57.842Z [err] ERR! build error
2020-11-24T06:31:57.843Z [err] gyp
2020-11-24T06:31:57.843Z [err] ERR!
2020-11-24T06:31:57.843Z [err] stack
2020-11-24T06:31:57.843Z [err] Error: make
failed with exit code: 2
2020-11-24T06:31:57.843Z [err] gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2020-11-24T06:31:57.843Z [err] gyp
2020-11-24T06:31:57.844Z [err] ERR!
2020-11-24T06:31:57.844Z [err] stack at ChildProcess.emit (events.js:315:20)
2020-11-24T06:31:57.844Z [err] gyp
2020-11-24T06:31:57.844Z [err] ERR! stack
2020-11-24T06:31:57.844Z [err] at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
2020-11-24T06:31:57.845Z [err] gyp
2020-11-24T06:31:57.845Z [err] ERR! System Linux 4.19.127-v7l
2020-11-24T06:31:57.845Z [err] gyp
2020-11-24T06:31:57.845Z [err] ERR! command
2020-11-24T06:31:57.845Z [err] "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-11-24T06:31:57.845Z [err] gyp
2020-11-24T06:31:57.845Z [err] ERR!
2020-11-24T06:31:57.845Z [err] cwd /config/node-red/node_modules/bufferutil
2020-11-24T06:31:57.846Z [err] gyp ERR! node -v
2020-11-24T06:31:57.846Z [err] v12.18.4
2020-11-24T06:31:57.846Z [err] gyp
2020-11-24T06:31:57.846Z [err] ERR! node-gyp -v v5.1.0
2020-11-24T06:31:57.846Z [err] gyp ERR!
2020-11-24T06:31:57.846Z [err] not ok
2020-11-24T06:31:58.160Z [err] npm
2020-11-24T06:31:58.161Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
2020-11-24T06:31:58.161Z [err] npm WARN notsup
2020-11-24T06:31:58.161Z [err] SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
2020-11-24T06:31:58.162Z [err]
2020-11-24T06:31:58.187Z [err] npm
2020-11-24T06:31:58.188Z [err] ERR! code ELIFECYCLE
2020-11-24T06:31:58.188Z [err] npm ERR!
2020-11-24T06:31:58.188Z [err] errno 1
2020-11-24T06:31:58.196Z [err] npm
2020-11-24T06:31:58.197Z [err] ERR! bufferutil@4.0.2 install: node-gyp-build
2020-11-24T06:31:58.197Z [err] npm ERR!
2020-11-24T06:31:58.197Z [err] Exit status 1
2020-11-24T06:31:58.197Z [err] npm
2020-11-24T06:31:58.197Z [err] ERR!
2020-11-24T06:31:58.197Z [err] npm
2020-11-24T06:31:58.197Z [err] ERR!
2020-11-24T06:31:58.197Z [err] Failed at the bufferutil@4.0.2 install script.
2020-11-24T06:31:58.197Z [err] npm ERR!
2020-11-24T06:31:58.198Z [err] This is probably not a problem with npm. There is likely additional logging output above.
2020-11-24T06:31:58.216Z [err]
2020-11-24T06:31:58.216Z [err] npm ERR! A complete log of this run can be found in:
2020-11-24T06:31:58.216Z [err] npm ERR!
2020-11-24T06:31:58.217Z [err] /root/.npm/_logs/2020-11-24T06_31_58_204Z-debug.log
2020-11-24T06:31:58.228Z rc=1
Any ideas ? Ciao !
This is not my project but I'll try and debug this in the next few weeks since I've got a decent background in node.js. I think I just had an nvme fail on my "server" so I've got to figure that out first :(
What's especially weird to me is that you can install the package directly so it's something with how node-red does the plugin build.
I think it might actually just be an issue with not wanting to run as root. Try running node-red as a non-root user and installing the plugin
I use Node Red on HASSIO, do you know how could i do that? I agree, the problem occurs while node-red tries to build the plugin.
El dom, 29 nov 2020 a las 13:24, Andrew Gracey (notifications@github.com) escribió:
I think it might actually just be an issue with not wanting to run as root. Try running node-red as a non-root user and installing the plugin
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hobbyquaker/node-red-contrib-lgtv/issues/32#issuecomment-735434895, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ37YRTH46EELH2CKDSHZH3SSKGU7ANCNFSM4SVJKY5Q .
-- Gonzalo Márquez Palacios gmarquezp@gmail.com Cel: 987540134
I added make and gcc to the packages to be loaded at startup on HASSIO. (Previosly only make package added)
The error changed: 2020-11-29T21:51:13.943Z Install : node-red-contrib-lgtv 1.1.0
2020-11-29T21:51:14.243Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-lgtv@1.1.0
2020-11-29T21:51:21.284Z [out]
2020-11-29T21:51:21.284Z [out] > bufferutil@4.0.2 install /config/node-red/node_modules/bufferutil
2020-11-29T21:51:21.284Z [out] > node-gyp-build
2020-11-29T21:51:21.284Z [out]
2020-11-29T21:51:23.383Z [out] make: Entering directory '/config/node-red/node_modules/bufferutil/build'
2020-11-29T21:51:23.384Z [out] CC(target) Release/obj.target/bufferutil/src/bufferutil.o
2020-11-29T21:51:23.430Z [err] ../src/bufferutil.c:2:10: fatal error: assert.h: No such file or directory
2020-11-29T21:51:23.430Z [err] 2 | #include ~~~~~
2020-11-29T21:51:23.430Z [err] compilation terminated.
2020-11-29T21:51:23.440Z [err] ERR! build error
2020-11-29T21:51:23.441Z [err] gyp
2020-11-29T21:51:23.441Z [err] ERR!
2020-11-29T21:51:23.441Z [err] stack Error: make
failed with exit code: 2
2020-11-29T21:51:23.441Z [err] gyp
2020-11-29T21:51:23.442Z [err] ERR! stack
2020-11-29T21:51:23.442Z [err] at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2020-11-29T21:51:23.442Z [err] gyp
2020-11-29T21:51:23.442Z [err] ERR! stack at ChildProcess.emit (events.js:315:20)
2020-11-29T21:51:23.442Z [err] gyp ERR!
2020-11-29T21:51:23.443Z [err] stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
2020-11-29T21:51:23.444Z [err] gyp
2020-11-29T21:51:23.444Z [err] ERR! System Linux 4.19.127-v7l
2020-11-29T21:51:23.444Z [err] gyp
2020-11-29T21:51:23.444Z [err] ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-11-29T21:51:23.445Z [err] gyp ERR!
2020-11-29T21:51:23.445Z [err] cwd /config/node-red/node_modules/bufferutil
2020-11-29T21:51:23.445Z [err] gyp ERR! node -v
2020-11-29T21:51:23.445Z [err] v12.18.4
2020-11-29T21:51:23.445Z [err] gyp ERR!
2020-11-29T21:51:23.445Z [err] node-gyp -v v5.1.0
2020-11-29T21:51:23.445Z [err] gyp
2020-11-29T21:51:23.446Z [err] ERR! not ok
2020-11-29T21:51:23.762Z [err] npm
2020-11-29T21:51:23.763Z [err] ERR! code ELIFECYCLE
2020-11-29T21:51:23.763Z [err] npm
2020-11-29T21:51:23.763Z [err] ERR! errno 1
2020-11-29T21:51:23.776Z [err] npm
2020-11-29T21:51:23.776Z [err] ERR! bufferutil@4.0.2 install: node-gyp-build
2020-11-29T21:51:23.776Z [err] npm ERR!
2020-11-29T21:51:23.776Z [err] Exit status 1
2020-11-29T21:51:23.776Z [err] npm ERR!
2020-11-29T21:51:23.777Z [err]
2020-11-29T21:51:23.777Z [err] npm ERR! Failed at the bufferutil@4.0.2 install script.
2020-11-29T21:51:23.777Z [err] npm
2020-11-29T21:51:23.777Z [err] ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-11-29T21:51:23.796Z [err]
2020-11-29T21:51:23.797Z [err] npm ERR! A complete log of this run can be found in:
2020-11-29T21:51:23.797Z [err] npm ERR! /root/.npm/_logs/2020-11-29T21_51_23_782Z-debug.log
2020-11-29T21:51:23.826Z rc=1
FIX found: add this packages to the configuration file:
system_packages:
- make
- gcc
- g++
- libc-dev
gmarquezp, thanks very much for coming to us with a solution ! You're great.
Unfortunately there's nothing to do for me: I get an error with g++ and also for libc-dev
with: system_packages:
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when starting or running this add-on.
[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. ##############################################################
With system_packages:
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when starting or running this add-on.
[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. [s6-finish] sending all processes the KILL signal and exiting._ ##############################################################
Any suggestion will be extremely appreciated. Bye.
Try adding musl-dev to the list of system_packages:
system_packages:
- make
- gcc
- musl-dev
- g++
- libc-dev
FIX IT Adding - musl
before - musl-dev
:
system_packages:
- make
- gcc
- musl
- musl-dev
- g++
- libc-dev
Thanks very much gmarquezp for the help !
P.S. note to other interested guys:
- musl
and - musl-dev
SHALL REMAINS between - gcc
and - g++
.
Otherwise it WONT WORK.
but where exactly should it be inserted and how, thanks in advance
Supervisor (left menu) -> Node Red (add-on icon) -> Configuration (on the upper menu)
THX 👍
`---------------------------------------------------------- 2020-10-18T19:33:19.324Z Install : node-red-contrib-lgtv 1.1.0
2020-10-18T19:33:16.493Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-lgtv@1.1.0 2020-10-18T19:33:26.784Z [out] 2020-10-18T19:33:26.784Z [out] > bufferutil@4.0.1 install /config/node-red/node_modules/bufferutil 2020-10-18T19:33:26.784Z [out] > node-gyp-build 2020-10-18T19:33:26.784Z [out] 2020-10-18T19:33:29.055Z [err] gyp 2020-10-18T19:33:29.056Z [err]
2020-10-18T19:33:29.056Z [err] ERR! build error 2020-10-18T19:33:29.057Z [err] gyp 2020-10-18T19:33:29.057Z [err] ERR! stack 2020-10-18T19:33:29.058Z [err] Error: not found: make 2020-10-18T19:33:29.058Z [err] gyp ERR! 2020-10-18T19:33:29.058Z [err] stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12) 2020-10-18T19:33:29.058Z [err] gyp ERR! 2020-10-18T19:33:29.058Z [err] stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19) 2020-10-18T19:33:29.058Z [err] gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29) 2020-10-18T19:33:29.059Z [err] gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16 2020-10-18T19:33:29.059Z [err] gyp 2020-10-18T19:33:29.059Z [err] ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5 2020-10-18T19:33:29.059Z [err] gyp ERR! 2020-10-18T19:33:29.059Z [err] stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 2020-10-18T19:33:29.059Z [err] gyp ERR! stack at FSReqCallback.oncomplete (fs.js:168:21) 2020-10-18T19:33:29.060Z [err] gyp 2020-10-18T19:33:29.060Z [err] ERR! System Linux 4.19.127-v7l 2020-10-18T19:33:29.060Z [err] gyp 2020-10-18T19:33:29.061Z [err] ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 2020-10-18T19:33:29.061Z [err] gyp ERR! cwd /config/node-red/node_modules/bufferutil 2020-10-18T19:33:29.061Z [err] gyp 2020-10-18T19:33:29.062Z [err] ERR! node -v 2020-10-18T19:33:29.062Z [err] v12.18.4 2020-10-18T19:33:29.062Z [err] gyp 2020-10-18T19:33:29.062Z [err] ERR! node-gyp -v v5.1.0 2020-10-18T19:33:29.062Z [err] gyp ERR! not ok 2020-10-18T19:33:29.542Z [err] npm 2020-10-18T19:33:29.543Z [err]
2020-10-18T19:33:29.543Z [err] WARN multiple-select@1.5.2 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. 2020-10-18T19:33:29.544Z [err] 2020-10-18T19:33:29.588Z [err] npm 2020-10-18T19:33:29.589Z [err] ERR! code ELIFECYCLE 2020-10-18T19:33:29.589Z [err] npm 2020-10-18T19:33:29.589Z [err] ERR! errno 2020-10-18T19:33:29.590Z [err] 1 2020-10-18T19:33:29.597Z [err] npm 2020-10-18T19:33:29.598Z [err] ERR! bufferutil@4.0.1 install:
node-gyp-build
2020-10-18T19:33:29.598Z [err] npm ERR! Exit status 1 2020-10-18T19:33:29.598Z [err] npm 2020-10-18T19:33:29.598Z [err] ERR! 2020-10-18T19:33:29.598Z [err] npm ERR! 2020-10-18T19:33:29.598Z [err] Failed at the bufferutil@4.0.1 install script. 2020-10-18T19:33:29.598Z [err] npm 2020-10-18T19:33:29.598Z [err] ERR! This is probably not a problem with npm. There is likely additional logging output above. 2020-10-18T19:33:29.619Z [err] 2020-10-18T19:33:29.619Z [err] npm ERR! A complete log of this run can be found in: 2020-10-18T19:33:29.620Z [err] npm 2020-10-18T19:33:29.620Z [err] ERR! /root/.npm/_logs/2020-10-18T19_33_29_605Z-debug.log 2020-10-18T19:33:29.638Z rc=1`