Simpleboy353 / REAPER-2.0

A multi-purpose discord bot made using Discord.js V14. Includes Logging, Welcomer, Slash Commands, Menu based Help Command and so much more!
GNU General Public License v3.0
331 stars 226 forks source link

ERR_DLOPEN_FAILED #211

Closed ryanalieh closed 10 hours ago

ryanalieh commented 1 year ago

PS C:\Users\ryanl\REAPER-2.0> node index C:\Users\ryanl\REAPER-2.0\node_modules\bindings\bindings.js:121 throw e; ^

Error: The module '\?\C:\Users\ryanl\REAPER-2.0\node_modules\better-sqlite3\build\Release\better_sqlite3.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 Module._extensions..node (node:internal/modules/cjs/loader:1203:18) at Module.load (node:internal/modules/cjs/loader:997:32) at Module._load (node:internal/modules/cjs/loader:838:12) at Module.require (node:internal/modules/cjs/loader:1021:19) at require (node:internal/modules/cjs/helpers:103:18) at bindings (C:\Users\ryanl\REAPER-2.0\node_modules\bindings\bindings.js:112:48) at new Database (C:\Users\ryanl\REAPER-2.0\node_modules\better-sqlite3\lib\database.js:48:64) at new Enmap (C:\Users\ryanl\REAPER-2.0\node_modules\enmap\src\index.js:169:11) at Object. (C:\Users\ryanl\REAPER-2.0\index.js:50:13) at Module._compile (node:internal/modules/cjs/loader:1119:14) { code: 'ERR_DLOPEN_FAILED' }

Node.js v18.9.0

Simpleboy353 commented 1 year ago

Sorry for the late reply..

Delete the node_modules folder and the package-lock.json file. Then do npm install and install all the required packages again. This should fix the error.

BTNGaming commented 1 year ago

So I've tried this and tested it, the issue always ends up being better-sqlite3. I've tried everything I could think of to resolve this to no avail. Any other solutions?

I even tried running nvm run lts/* but no luck.

Simpleboy353 commented 1 year ago

delete the package-lock.json file and the node_modules folder. After deleting, re-install all the required packages. This should fix this error.

BTNGaming commented 1 year ago

Yeah, I've attempted that as well. I did this on 2 machines, windows 10 and a centos system I have. I have had no luck though still.

BTNGaming commented 1 year ago

If easier you can reach me on discord @ BTNGaming#7728

I can run you through everything i've tried and maybe we can find a final solution to resolve this for everyone?

BTNGaming commented 1 year ago

https://i.imgur.com/t4BgMeF.png https://i.imgur.com/KtEnb5L.png

But then installing chalk never shows up properly xD lol.

Simpleboy353 commented 10 hours ago

Hey there! I know I am replying very late... but I am working on a new update for the bot, which will most likely fix your errors... Hope this helps!