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

snap7 was compiled against a different Node.js version using #381

Open
Dettenrocks opened this issue Sep 12, 2024 · 1 comment
Open

snap7 was compiled against a different Node.js version using #381

Dettenrocks opened this issue Sep 12, 2024 · 1 comment

Comments

@Dettenrocks
Copy link

Dettenrocks commented Sep 12, 2024

Describe the bug
Error: The module '/opt/iobroker/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 Module._extensions..node (node:internal/modules/cjs/loader:1586:18)

at Module.load (node:internal/modules/cjs/loader:1288:32)

at Module._load (node:internal/modules/cjs/loader:1104:12)

at Module.require (node:internal/modules/cjs/loader:1311:19)

at require (node:internal/modules/helpers:179:18)

at bindings (/opt/iobroker/node_modules/bindings/bindings.js:112:48)

at Object.<anonymous> (/opt/iobroker/node_modules/node-snap7/lib/node-snap7.js:8:45)

at Module._compile (node:internal/modules/cjs/loader:1469:14)

at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)

at Module.load (node:internal/modules/cjs/loader:1288:32) {

code: 'ERR_DLOPEN_FAILED'

}

Node.js v20.17.0

Versions:

  • Adapter version: v1.4.3
  • JS-Controller version: v6.0.11
  • Node version: Node.js v20.17.0
  • Operating system: iobroker.docker v10
@Apollon77
Copy link
Contributor

ideally the iobroker should fix this automatically ... if not, follow the infos in error message ;-)

cd /opt/iobroker/node_modules/node-snap7
npm rebuild

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

2 participants