snowdd1 / homebridge-knx

KNX platform shim for homebridge
https://github.com/nfarina/homebridge
GNU General Public License v2.0
97 stars 56 forks source link

Failed to update #110

Closed migabc closed 5 years ago

migabc commented 6 years ago

Hi, When trying to update I get this error: Any idea what's wrong?

pi@raspberrypi:~ $ date; sudo npm update -g homebridge-knx Mon Dec 4 01:04:54 WET 2017 npm ERR! code 128 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/snowdd1/homebridge-knx.git /root/.npm/_cacache/tmp/git-clone-08028368 npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-08028368': Permission denied npm ERR!

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2017-12-04T01_05_09_863Z-debug.log

snowdd1 commented 6 years ago

I think -g requires --unsave-perm or something to be able to write things as root, doesn't it?

migabc commented 6 years ago

Still getting the same error:

pi@raspberrypi:~ $ date; sudo npm update -g --unsafe-perm homebridge-knx Fri Dec 29 14:13:16 WET 2017 npm ERR! code 128 npm ERR! Command failed: /usr/bin/git clone -q git://github.com/snowdd1/homebridge-knx.git /root/.npm/_cacache/tmp/git-clone-d2fcea4f npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-d2fcea4f': Permission denied npm ERR!

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2017-12-29T14_13_32_504Z-debug.log pi@raspberrypi:~ $

snowdd1 commented 6 years ago

Sorry, this might have to do with your local installation.

migabc commented 6 years ago

I re-installed and now it's updated:

pi@raspberrypi:~ $ sudo npm install -g --unsafe-perm homebridge /usr/bin/homebridge -> /usr/lib/node_modules/homebridge/bin/homebridge . . .

migabc commented 6 years ago

btw, do you know when will the Sprinker service be available?

snowdd1 commented 6 years ago

The services depend on the homebridge/hap-nodejs installation only. If they have included it into the base work, you can immediatly use it in homebridge-knx (searches for the key word in the list of existing services). homebridge-knx does not bring any own interpretations of services of characteristics, besides the handlers that do something with the data between homebridge and knx.

migabc commented 6 years ago

Thx, it seems that it will be out soon:

KhaosT commented on 2018-01-15 Not yet, I'll try to add those soon.