problems with Homebridge on RPB 3+ (NodeJS)

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
3km
Posts: 3
Joined: Tue Mar 26, 2019 9:27 am

problems with Homebridge on RPB 3+ (NodeJS)

Post by 3km »

Hi everybody!
everything is done according to this tutorial: viewtopic.php?t=2908

i have installed with dietpi-software next packages:
build-essentials
avahi-daemon
node.js
python (python pip package installer)

after this comand :
npm install -g --unsafe-perm homebridge hap-nodejs node-gyp

I recieve some error messges.

Code: Select all

root@DietPi:~# npm install -g --unsafe-perm homebridge hap-nodejs node-gyp
/usr/local/bin/homebridge -> /usr/local/lib/node_modules/homebridge/bin/homebridge
/usr/local/bin/node-gyp -> /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js

> curve25519-n@1.4.0 install /usr/local/lib/node_modules/hap-nodejs/node_modules/curve25519-n
> node-gyp rebuild

gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack     at getNotFoundError (/usr/local/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:158:21)
gyp ERR! System Linux 4.14.98-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/hap-nodejs/node_modules/curve25519-n
gyp ERR! node -v v11.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! curve25519-n@1.4.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the curve25519-n@1.4.0 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-03-25T22_48_00_395Z-debug.log
Could you please help me to solve this problem?
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: problems with Homebridge on RPB 3+ (NodeJS)

Post by MichaIng »

Error: not found: make
That is strange, since dietpi-software > build-essentials should install make.

Please check: which make
If it has no output, then do: apt install make
And retry the npm command.
3km
Posts: 3
Joined: Tue Mar 26, 2019 9:27 am

Re: problems with Homebridge on RPB 3+ (NodeJS)

Post by 3km »

Have tried again from the clean image - the same.
root@DietPi:~# which make
/usr/bin/make
Details and log in pastebin
https://pastebin.com/dl/RG2ybViX
Post Reply