Page 1 sur 1

installation homebridge ne fonctionne plus

Publié : 20 août 2021, 23:11
par Atomebr
Bonjour,
Il me semble qu'il y a un bug. J'avais installé homebridge après domoticz il y a quelque temps sans problème particulier.
Je fais une nouvelle carte SD et au moment d'installer homebridge j'ai maintenant ce problème :

pi@raspberrypi:~ $ sudo npm install -g unsafe-perm homebridge homebridge-config-ui-x
npm ERR! code E404
npm ERR! 404 Object Not Found - GET https://skimdb.npmjs.com/registry/unsafe-perm - not_found
npm ERR! 404
npm ERR! 404 'unsafe-perm@*' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.


npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-08-20T20_45_32_222Z-debug.log


pourtant les versions de node et de npm ont l'air OK :
pi@raspberrypi:~ $ node -v
v12.22.5
pi@raspberrypi:~ $ npm -v
7.21.0

Les tutos et le github de homebridge indiquent pourtant cette méthode d'installation.
D'où peut venir le problème ?
Ma version de raspbian est 5.10.59-v7+ sur un pi 3+

Re: installation homebridge ne fonctionne plus

Publié : 21 août 2021, 06:05
par Chrominator
On dirait que tu as mal recopié la ligne d'install.
Le tuto indique deux tirets devant unsafe-perm et on en voit aucun dans ta trace.
Screenshot 2021-08-21 at 06-04-29 Install Homebridge on Raspbian · homebridge homebridge Wiki.png
Screenshot 2021-08-21 at 06-04-29 Install Homebridge on Raspbian · homebridge homebridge Wiki.png (7.98 Kio) Consulté 2061 fois

Re: installation homebridge ne fonctionne plus

Publié : 21 août 2021, 11:09
par Atomebr
Merci Chrominator,
je ne connais pas bien la syntaxe Linux et ce -- m'avait échappé.
je pense que j'avais bien essayé initialement en copiant la ligne complète et que cela n'avait pas marché non plus.
durant l'execution j'ai plusieurs :
npm WARN deprecated class-transformer@0.3.2: This release contains a breaking change from 0.3.1 but otherwise functions properly. Please read the changelog on Github to learn more.

qui ont attiré mon attention aussi j'ai changé la version de node de 12.22.5 à 14.17.5
pi@raspberrypi:/usr/local/bin $ node -v
v14.17.5
pi@raspberrypi:/usr/local/bin $ npm -v
6.14.14

jai relancé

et ... cela a fonctionné.

pi@raspberrypi:/usr/local/bin $ sudo hb-service install --user homebridge
ℹ Installing Homebridge Service
ℹ Created service user: homebridge
ℹ Creating Homebridge directory: /var/lib/homebridge
ℹ Creating default config.json: /var/lib/homebridge/config.json
ℹ Starting Homebridge Service...
✔ Homebridge Started
✔ Homebridge Setup Complete