Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't work with Node.js v20.x #92

Closed
Sinclair81 opened this issue Oct 26, 2023 · 2 comments
Closed

Won't work with Node.js v20.x #92

Sinclair81 opened this issue Oct 26, 2023 · 2 comments

Comments

@Sinclair81
Copy link

SoulL3Zz posted the following to my Homebridge plugin:

Hi, I'm getting an error message since I upgraded to Node.js 20.x:
[10/26/2023, 10:43:53 AM] ====================
[10/26/2023, 10:43:53 AM] ERROR LOADING PLUGIN homebridge-logo-platform:
[10/26/2023, 10:43:53 AM] Error: The module '/var/lib/homebridge/node_modules/homebridge-logo-platform/node_modules/node-snap7/build/Release/node_snap7.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 108. This version of Node.js requires
NODE_MODULE_VERSION 115. 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:1327:18)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Function.Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at bindings (/var/lib/homebridge/node_modules/homebridge-logo-platform/node_modules/bindings/bindings.js:112:48)
at Object. (/var/lib/homebridge/node_modules/homebridge-logo-platform/node_modules/node-snap7/lib/node-snap7.js:8:45)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Function.Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at Object. (/var/lib/homebridge/node_modules/homebridge-logo-platform/src/snap7-logo.ts:1:13)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
[10/26/2023, 10:43:53 AM] ====================

@Apollon77
Copy link

see #93

@mathiask88
Copy link
Owner

see #94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants