Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ojkaas opened this issue Sep 10, 2020 · 3 comments
Open

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

ojkaas opened this issue Sep 10, 2020 · 3 comments

Comments

@ojkaas
Copy link

ojkaas commented Sep 10, 2020

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:

[email protected] 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! [email protected] install: node-gyp-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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
Copy link

On nodered config addon add system_packages: [make]

@gmarquezp
Copy link

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

system_packages:
  - make
  - gcc
  - g++
  - libc-dev

@gmarquezp
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants