dgreif / ring

Unofficial packages for Ring Doorbells, Cameras, Alarm System, and Smart Lighting
MIT License
1.22k stars 163 forks source link

Module errors loading ring #1250

Closed andsoitgoes closed 1 year ago

andsoitgoes commented 1 year ago

Is there an existing issue for this?

Describe The Bug

I’m getting a log error when I try loading up ring. See below for the error. I’ve tried reinstalling to no avail.

To Reproduce

Restart home bridge, try to open settings.

Expected behavior

Ring showing in homebridge

Relevant log output

Error: Cannot find module './extendStringPrototype'
Require stack:
- /homebridge/node_modules/homebridge-ring/node_modules/colors/lib/index.js
- /homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/util.js
- /homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/rest-client.js
- /homebridge/node_modules/homebridge-ring/lib/homebridge-ui/server.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/homebridge/node_modules/homebridge-ring/node_modules/colors/lib/index.js:13:1)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/homebridge/node_modules/homebridge-ring/node_modules/colors/lib/index.js',
    '/homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/util.js',
    '/homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/rest-client.js',
    '/homebridge/node_modules/homebridge-ring/lib/homebridge-ui/server.js'
  ]
}

Node.js v18.12.1

Screenshots

No response

Homebridge Ring Config

"platforms": [
        {
            "refreshToken": "",
            "alarmOnEntryDelay": true,
            "hideDoorbellSwitch": true,
            "hideCameraSirenSwitch": true,
            "hideInHomeDoorbellSwitch": true,
            "hideAlarmSirenSwitch": true,
            "platform": "Ring"
        },

Additional context

No response

OS

Raspbian

Node.js Version

18.12.1

NPM Version

8.19.2

Homebridge/HOOBs Version

1.6.1

Homebridge Ring Plugin Version

11.8.0

Operating System

Docker

dgreif commented 1 year ago

Reinstalling was my first suggestion, but sounds like you've tried that. Maybe try updating to the latest version of Node + NPM and then reinstalling again