Giter Site home page Giter Site logo

Comments (5)

jtasoftware avatar jtasoftware commented on May 27, 2024

An update on this issue. I tried to identify if it could be fixed using latest node 20.x version, homebridge 1.7.0 or earlier versions of homebridge-ui. This only setting that avoid this situation is the Insecure mode. As soon as Insecure mode is disabled in Homebrige (no longer allowing accessory control) npm updates fail and homebridge restart never ends.

from homebridge-config-ui-x.

jtasoftware avatar jtasoftware commented on May 27, 2024

There's definitely an issue between Homebridge 1.8.0 and Node 20.12.2. Simply install both of them on a vanilla Raspberry (Debian GNU/Linux Bookworm 12) and restart the Raspberry. You'll see that it no longer starts.

ERROR: npm v10.5.0 is known not to run on Node.js v20.12.2. This version of npm supports the following node versions: ^18.17.0 || >=20.5.0. You can find the latest version at https://nodejs.org/.

from homebridge-config-ui-x.

bwp91 avatar bwp91 commented on May 27, 2024

Hi @jtasoftware

i'm afraid i haven't been able to reproduce this on my pi with HB 1.8.0, node 20.12.2 and turning off insecure mode.

have you tried a node reinstall/rebuild with

sudo hb-service update-node 20.12.2

if it skips because the version is already installed, you could try

sudo hb-service update-node 20.12.1

then

sudo hb-service update-node 20.12.2

from homebridge-config-ui-x.

jtasoftware avatar jtasoftware commented on May 27, 2024

I didn’t find any workaround so far (reinstalling homebridge, turning insecure, etc). Only rebuilding the Pi did fix.

My findings are:

  • If I run secure mode using homebridge 1.8.0 I get the missing npm.cli error with both npm 20.12 and 18.19.
  • If I update to 20.12.2 I get installation errors at the first homebridge update and the service will no longer restart.
  • Homebridge logs (posted previously) mention a compatibility issue between npm 10.5 and node.js 20.12.2
  • One of my older pi using previous version of Rasbian do not have this issue.

I will try again more tests.

Did you tested using latest Homebridge for Raspberry 64 bit image (2024.01.08) ?

from homebridge-config-ui-x.

jtasoftware avatar jtasoftware commented on May 27, 2024

Hi an update on this issue: I rebuilt the Pi using a different SDCard (premium brand) and all instabilities disappeared.

No more problems or error messages while turning off the Insecure Mode.

No more errors messages after upgrading to node 20.12.2 (compatibility warning are still there but do not seem to be a problem).

from homebridge-config-ui-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.