Comments (10)
Looks like this may be unrelated to TCC and instead a more general Node issue, although Iām still not sure how to resolve it if so.
from homebridge-tcc.
Maybe update NodeJS to the latest version will reset the node environment ?
Also was there anything interesting in this file - /home/homebridge/.npm/_logs/2023-10-14T15_50_28_220Z-debug-0.log
from homebridge-tcc.
I left the tail of the file in the OP, but it didn't contain anything I could decode. Here's the end:
11148 verbose stack TypeError: Cannot read properties of null (reading 'matches')
11148 verbose stack at Link.matches (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:1119:41)
11148 verbose stack at Link.canDedupe (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:1073:15)
11148 verbose stack at PlaceDep.pruneDedupable (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:426:14)
11148 verbose stack at PlaceDep.pruneDedupable (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:450:16)
11148 verbose stack at new PlaceDep (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:219:12)
11148 verbose stack at /opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:943:31
11148 verbose stack at Array.map ()
11148 verbose stack at [buildDepStep] (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:943:8)
11148 verbose stack at async Arborist.buildIdealTree (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:207:7)
11148 verbose stack at async Promise.all (index 1)
11149 verbose cwd /homebridge
11150 verbose Linux 4.4.180+
11151 verbose node v18.16.0
11152 verbose npm v9.5.1
11153 error Cannot read properties of null (reading 'matches')
11154 verbose exit 1
11155 timing npm Completed in 168014ms
11156 verbose unfinished npm timer reify 1697298628308
11157 verbose unfinished npm timer reify:loadTrees 1697298628311
11158 verbose unfinished npm timer idealTree:buildDeps 1697298630553
11159 verbose unfinished npm timer idealTree:node_modules/.pnpm/[email protected]/node_modules/ajv 1697298748423
11160 verbose unfinished npm timer idealTree:node_modules/.pnpm/[email protected]/node_modules/bluebird 1697298776374
11161 verbose unfinished npm timer idealTree:node_modules/.pnpm/[email protected]/node_modules/babel-eslint 1697298795391
11162 verbose code 1
I was thinking of trying an npm rebuild, but maybe updating would also do it.
from homebridge-tcc.
Nothing in there jumps out to me
I'm stumped
from homebridge-tcc.
Yeah. It's weird. I can't even get npm rebuild to run. I guess I could recreate the container.
from homebridge-tcc.
This was the original error message I got for TCC when booting the container. No problem, I thought, I'll just update it. But now I can't update, install, or uninstall this or any plugins. Anything in here look helpful?
[10/15/2023, 6:41:13 PM] ====================
[10/15/2023, 6:41:13 PM] ERROR LOADING PLUGIN homebridge-tcc:
[10/15/2023, 6:41:13 PM] Error: The module '/homebridge/node_modules/.pnpm/[email protected]/node_modules/node-expat/build/Release/node_expat.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 108. Please try re-compiling or re-installing
the module (for instance, using npm rebuild
or npm install
).
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1338:18)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at bindings (/homebridge/node_modules/.pnpm/[email protected]/node_modules/bindings/bindings.js:112:48)
at Object. (/homebridge/node_modules/.pnpm/[email protected]/node_modules/node-expat/lib/node-expat.js:4:34)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
from homebridge-tcc.
That message is pretty typical after an update of NodeJS, and the usual fix it to run npm rebuild or just install the plugin again.
from homebridge-tcc.
That's what I thought too. But I can't run npm rebuild, and I can't uninstall or reinstall the plugin, because I get the error initially reported.
Should I just delete node_modules and restart my container? Will homebridge rebuild its dependencies automatically?
from homebridge-tcc.
Homebridge won't rebuild its dependencies automatically
What about creating a new container, and restoring a homebridge UI backup from the existing container ? It should install / update all you plugins.
from homebridge-tcc.
Yes, that seems like the best approach. I'll try it next. Thanks for the input.
from homebridge-tcc.
Related Issues (20)
- No device created HOT 2
- Thank you HOT 1
- Current Heating and Cooling State not changing HOT 1
- Temperature not set, but hold updated. Fault with success. HOT 7
- Feature Request: Toggle Switch for Hold Type
- Feature Request: Expose Outdoor Temperature Sensor within HomeKit HOT 3
- Service Unavailable HOT 4
- Unable to install HOT 4
- Installation using native Synology DSM 7 Homebridge not working HOT 13
- Can't install plug-in HOT 3
- TCC throughs errors often but works. HOT 2
- Service Log errors HOT 7
- Installation error - can't install HOT 16
- Lost all accessories after updating Node to 20.9. HOT 2
- Error: Could not locate the bindings file. HOT 2
- Homebridge - Node.js Updated causing issues HOT 4
- No plugin was found on Synology NAS HOT 6
- Add the capability to group humidity sensor with thermostat. HOT 1
- Replaced Thermostat - Now TCC - Homebridge won't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-tcc.