Closed cl4udiu5 closed 1 year ago
This is an issue with npm
, not with Homebridge Hue. Best delete that directory .homebridge-hue-…
manually.
I'm running a fresh install of the latest Homebridge version (with node
upgraded to v16.17.1
):
Getting the same error. Can't install homebridge-hue@0.13.46
sudo hb-service add homebridge-hue@0.13.44
works fine tho, so I'm guessing there's something wonky with 0.13.46
Guess again. That version has had over 3,500 downloads this week.
And what? Let's not be cocky and over-defensive. And I'm guessing most of those are upgrades, not fresh installs.
If you work in software engineering I'm sure you know that some bugs only manifest themselves under very specific conditions.
If you work in software engineering, you should know better than guessing and collect facts instead:
$ sudo npm -g list homebridhe-hue
/usr/lib
└── (empty)
$ sudo npm -g i homebridge-hue@0.13.46
added 110 packages, and audited 111 packages in 14s
51 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Not sure what "homebridhe" [sic] has to do with anything I posted.
Probably the worst thing you can do is being rude towards your fans and users of your project. Very childish and immature behavior.
To anyone else reading this: Yeah can still reproduce. Fresh Homebridge image (latest as of writing), Raspberry Pi Zero W, installing 0.13.46
results in an error but 0.13.44
works.
My bad, that was a typo. I am far from infallible, but I had uninstalled Homebridge Hue just before. To wit:
$ sudo npm -g list homebridge-hue
/usr/lib
└── (empty)
$ sudo npm -g i homebridge-hue@0.13.46
added 110 packages, and audited 111 packages in 14s
51 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
As I said above: this is an issue with npm
, nothing to do with the Homebridge Hue code. You're more than welcome to guess otherwise, but please don't waste my time with that. If you want my help, rather than accusing me of rudeness, you could provide the actual error message and attach the npm
log file.
It's not a random guess, but an educated guess (synonym: hypothesis). We do a lot of those at software companies.
It's based on:
0.13.44
works but 0.13.46
doesn't (after repeated retries), then it points towards something with 0.13.46
even if there isn't a bug in the actual business logic or anything like that. But its a starting point for the investigation0.13.46
with 0.13.44
we can indeed see that a lot of transitive deps changed between the two versions, further strengthening the hypothesis: ebaauw/homebridge-hue@d5fc99589d68db98ff93ed4fb7b7987af825f8b9..98b9d53e165e49bfa17d52722755a4c43b45bc80
#diff-053150b640npm
complains something diffuse about the googleapis
package (which I noticed is a part of the transitive deps changeset as well)I'll reproduce again and see what the logs said exactly. Another hypothesis I had was that perhaps some of the newer deps require a newer version of node
, but I upgraded to v16.17.1
with similar results.
The Goolgle APIs are a dependency of the fakegato-history
package; Homebridge Hue doesn't use that function. What OS are you running on the Pi Zero W? Did you update npm
after installing / updating NodeJS?
Is this the original Pi Zero W, with ARM 6 processor? NodeJS hasn't been supported officially on that platform for a long time; last time I checked, a couple of months ago, the unofficial build still worked, but I already had issues with some libraries requiring C-extensions.
Issue
Log Messages
Debug Files