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

Error : NODE_MODULE_VERSION 102 #2429

Open
rexx1010 opened this issue Sep 17, 2024 · 0 comments
Open

Error : NODE_MODULE_VERSION 102 #2429

rexx1010 opened this issue Sep 17, 2024 · 0 comments

Comments

@rexx1010
Copy link

Hello, actually I am experiencing the following error :

Error: The module '/home/container/node_modules/discord-canvas/node_modules/canvas/build/Release/canvas.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 102. 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:1586:18)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Function.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 Object.<anonymous> (/home/container/node_modules/discord-canvas/node_modules/canvas/lib/bindings.js:3:18)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Object.require.extensions.<computed> [as .js] (/usr/local/lib/node_modules/ts-node/src/index.ts:1608:43)
    at Module.load (node:internal/modules/cjs/loader:1288:32) {
  code: 'ERR_DLOPEN_FAILED'

Canvas Version : 2.11.2
Node : 20.17.0

I have tried previous versions of node too but I got the same error. I also tried npm install and yarn listed in the troubleshoot installation but still it didnt fix it. I even tried deleting the node_module folder and running npm install but it still didnt work. I have now tried every single version and every single command I could but still I'm experiencing this problem, Kindly help me fix the issue.

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

1 participant