-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
The module was compiled against a different Node.js version #797
Comments
I assume this didn't fix it? You are probably copying |
the commands didnt fix it no. Any suggestions how i can fix? |
I'm sure the solution is in here somewhere: https://github.com/JoshuaWise/better-sqlite3/search?q=The+module+was+compiled+against+a+different+Node.js+version&type=issues This is not an issue with better-sqlite3, you must be doing something wrong with how you install/build your packages. |
Hi, using node 18.0.0 installed via
I did remove my SOLUTION: switching to node v16.x LTS worked for me. I use nvm to manage this kind of issues, in my case I did run:
It would be nice though, that this program works also on newer versions such as v18... |
I assume the wrong prebuilds are currently installed (instead of failing the prebuild), see #800 |
Node.js v18 has been out for all of two weeks. Support will come soon. |
I'm sorry for my behavior JoshuaWise, it's just that I've gotten a bit burnt. I feel the shapes. My current node version is v16.15.0, so that message that appears to me is very strange. My apologies and I hope you have not taken it the wrong way. |
JoshuaWise I installed node version 16.1.0 and miraculously it worked!! I can now connect to the database. Please, if you can delete my previous thread #805 I don't want to stain your work, I hope you have excused me. |
@Regradert Even though you wrote a huge rant there, you never mentioned you were trying to build against Electron v18. Module version What happened was, you kept building the addon for your locally installed Node.js and kept trying to run that on Electron v18. Two different environments. All you had to do was search for what those versions meant. My suggestion is to use something like @JoshuaWise can we get #126 pinned again? It's buried deep in old issues. |
@m4heshd Thank you very much !! I wish I had found it sooner, that thread has helped me a lot. |
Closing this as it's not really an issue with |
Unhandled promise rejection: Error: The module '/home/container/node_modules/better-sqlite3/build/Release/better_sqlite3.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 83. This version of Node.js requires NODE_MODULE_VERSION 102. Please try re-compiling or re-installing the module (for instance, using
npm rebuildor
npm install)
Ive been trying to start my bot using pterodactyl panel and ive been getting this error, when running it on my pc or as a normal node process on my vps it runs just fine. Any ideas?
The text was updated successfully, but these errors were encountered: