homebridge-config-ui-x: Update error for version 4.41.3

Bildschirmfoto 2021-11-25 um 14 51 04

Describe Your Problem: Update error when running the update from terminal (macOS). Update error when running the update from homebridge web interface (macOS Safari). See Screenshot

Logs:

Show the Homebridge / Homebridge Config UI X logs here.

Homebridge Config:

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154",
        "advertiser": "ciao",
        "bind": [
            "eth0"
        ]
    },
    "description": "Home Smart Home",
    "platforms": [
        {
            "name": "Config",
            "port": 8080,
            "auth": "form",
            "theme": "dark-mode",
            "restart": "sudo -n systemctl restart homebridge",
            "tempUnits": "c",
            "lang": "auto",
            "sudo": true,
            "sessionTimeout": 28800,
            "log": {
                "method": "custom",
                "command": "journalctl -o cat -n 500 -f -u homebridge"
            },
            "platform": "config"
        },
        {
            "name": "Hue",
            "anyOn": true,
            "effects": true,
            "hosts": [
                "192.168.0.59"
            ],
            "lights": true,
            "nativeHomeKitLights": true,
            "nativeHomeKitSensors": true,
            "noResponse": true,
            "resource": true,
            "users": {
                "001788FFFE28C21C": "ZakWR-pTjHhrN81Onbsnbfjshd87jCjUrSFJjwbHUPN"
            },
            "platform": "Hue"
        },
        {
            "name": "Harmony",
            "hubIP": "192.168.0.251",
            "DELAY_BEFORE_RETRY_AFTER_NETWORK_LOSS": 60000,
            "HUB_CONNECT_TIMEOUT": 10000,
            "HUB_SEND_TIMEOUT": 30000,
            "TVAccessory": true,
            "mainActivity": "Watch TV (WZ)",
            "remoteOverrideCommandsList": [
                {
                    "ActivityName": "Watch Blu-ray",
                    "CommandsList": [
                        {
                            "CommandName": "PLAY",
                            "NewCommand": "Samsung Blu-ray Player;Play"
                        },
                        {
                            "CommandName": "BACK",
                            "NewCommand": "Samsung Blu-ray Player;Pause"
                        },
                        {
                            "CommandName": "INFORMATION",
                            "NewCommand": "Samsung Blu-ray Player;PopUp"
                        }
                    ]
                }
            ],
            "switchAccessories": true,
            "platform": "HarmonyHubWebSocket"
        },
        {
            "name": "SamsungTizen",
            "devices": [
                {
                    "name": "TV",
                    "ip": "192.168.0.234",
                    "mac": "64:1C:AE:E4:30:BA",
                    "inputs": [
                        {
                            "name": "Netflix",
                            "type": "app",
                            "value": "11101200001"
                        },
                        {
                            "name": "Disney+",
                            "type": "app",
                            "value": "3201901017640"
                        },
                        {
                            "name": "Prime Video",
                            "type": "app",
                            "value": "3201512006785"
                        },
                        {
                            "name": "DAZN",
                            "type": "app",
                            "value": "3201607009920"
                        },
                        {
                            "name": "Spotify",
                            "type": "app",
                            "value": "3201606009684"
                        },
                        {
                            "name": "ARD Mediathek",
                            "type": "app",
                            "value": "3201412000679"
                        },
                        {
                            "name": "ZDF Mediathek",
                            "type": "app",
                            "value": "3201705012365"
                        }
                    ],
                    "switches": [
                        {
                            "name": "Mute",
                            "mute": true
                        }
                    ]
                }
            ],
            "platform": "SamsungTizen"
        }
    ],
    "accessories": [],
    "disabledPlugins": [
        "homebridge-laundrify-official"
    ]
}

Environment:

  • Node.js Version: 16.13.0
  • NPM Version: 8.1.4
  • Homebridge Version: 1.3.8
  • Homebridge Config UI X Version: 4.41.2
  • Operating System: Raspbian
  • Process Supervisor: Docker / Systemd / init.d / pm2 / launchctl / hb-service / other / none

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 35 (7 by maintainers)

Most upvoted comments

Could you provide more details on how do it ?

sudo rm -rf /usr/local/lib/node_modules/.homebridge-config-ui-x-*

or for other users:

sudo rm -rf /usr/lib/node_modules/.homebridge-config-ui-x-*

Then try install again:

sudo npm install -g homebridge-config-ui-x --unsafe-perm

Thank you @oznu. Works fine for me.

Could you provide more details on how do it ?

sudo rm -rf /usr/local/lib/node_modules/.homebridge-config-ui-x-*

or for other users:

sudo rm -rf /usr/lib/node_modules/.homebridge-config-ui-x-*

Then try install again:

sudo npm install -g homebridge-config-ui-x --unsafe-perm

Thanks @oznu this fixed it for me tho i did it slightly different i ran sudo rm -rf /usr/local/lib/node_modules/.homebridge-config-ui-x-* then i ran sudo hb-config and updated from there