Coder Social home page Coder Social logo

Comments (10)

ibogost avatar ibogost commented on September 15, 2024

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.

NorthernMan54 avatar NorthernMan54 commented on September 15, 2024

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.

ibogost avatar ibogost commented on September 15, 2024

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.

NorthernMan54 avatar NorthernMan54 commented on September 15, 2024

Nothing in there jumps out to me

I'm stumped

from homebridge-tcc.

ibogost avatar ibogost commented on September 15, 2024

Yeah. It's weird. I can't even get npm rebuild to run. I guess I could recreate the container.

from homebridge-tcc.

ibogost avatar ibogost commented on September 15, 2024

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.

NorthernMan54 avatar NorthernMan54 commented on September 15, 2024

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.

ibogost avatar ibogost commented on September 15, 2024

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.

NorthernMan54 avatar NorthernMan54 commented on September 15, 2024

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.

ibogost avatar ibogost commented on September 15, 2024

Yes, that seems like the best approach. I'll try it next. Thanks for the input.

from homebridge-tcc.

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.