bwp91 / homebridge-meross

Homebridge plugin to integrate Meross devices into HomeKit.
MIT License
194 stars 32 forks source link

Problem updating 9.2.5 → 9.2.6 #536

Closed juanfal closed 8 months ago

juanfal commented 9 months ago

I get the following error message:

278 error ENOTEMPTY: directory not empty, rename '/var/lib/homebridge/node_modules/homebridge-meross' -> '/var/lib/homebridge/node_modules/.homebridge-meross-wacUV3ZQ'

I use (1) Homebridge 1.6.1 on Raspberry Pi zero copy

Had the version 9.2.5 of hb-meross

278 error ENOTEMPTY: directory not empty, rename '/var/lib/homebridge/node_modules/homebridge-meross' -> '/var/lib/homebridge/node_modules/.homebridge-meross-wacUV3ZQ'
bwp91 commented 9 months ago

Hi @juanfal

From the homebridge terminal, can you run this:

sudo rm -rf /var/lib/homebridge/node_modules/homebridge-meross

don't restart homebridge at this point (have to say it!) then run this:

sudo npm i -g homebridge-meross
bwp91 commented 9 months ago

if neither of the above commands fail, then restart homebridge

juanfal commented 9 months ago

$ sudo rm -rf /var/lib/homebridge/node_modules/homebridge-meross pi23:31:21 homebridge-shelly-consumption $ sudo npm i -g homebridge-meross sudo: npm: command not found pi23:31:29 homebridge-shelly-consumption $ sudo npm i -g homebridge-meross

El 18 sept 2023, a las 22:54, Ben @.***> escribió:

Hi @juanfal https://github.com/juanfal From the homebridge terminal, can you run this:

sudo rm -rf /var/lib/homebridge/node_modules/homebridge-meross don't restart homebridge at this point (have to say it!) then run this:

sudo npm i -g homebridge-meross — Reply to this email directly, view it on GitHub https://github.com/bwp91/homebridge-meross/issues/536#issuecomment-1724391086, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG2U3EUMJT5VIKGJ3CW3KTX3CYHZANCNFSM6AAAAAA45I5KYU. You are receiving this because you were mentioned.

bwp91 commented 9 months ago

ah ok don’t restart homebridge at all yet

bwp91 commented 9 months ago

in the homebridge ui can you search for the meross plugin, and does it let you install it?

juanfal commented 9 months ago

It has disappeared. I spent 1 hour reconfiguring every automation and organising everything in the previous dissaster ()

juanfal commented 9 months ago

I my gosh! I had an old non updated safari window still with the Meross plugin asking to be updated. Oh my! it has update it (installed it) without breaking everything as it did before with that crash!

Thanks anyway!

bwp91 commented 9 months ago

vaya tela!