Nodemon problem discord.js

When I’m trying to run my Discord bot with “nodemon” it says this:

C:\Users\Praxz\OneDrive\Desktop\Discord bot>nodemon
[nodemon] 2.0.7
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node index.js
C:\Users\Praxz\OneDrive\Desktop\Discord bot\node_modules\bindings\bindings.js:121
throw e;

Error: The module ‘\?\C:\Users\Praxz\OneDrive\Desktop\Discord bot\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 88. 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:1167:18)
at Module.load (node:internal/modules/cjs/loader:973:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:997:19)
at require (node:internal/modules/cjs/helpers:92:18)
at bindings (C:\Users\Praxz\OneDrive\Desktop\Discord bot\node_modules\bindings\bindings.js:112:48)
at Object. (C:\Users\Praxz\OneDrive\Desktop\Discord bot\node_modules\better-sqlite3\lib\database.js:9:24)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:973:32) {
[nodemon] app crashed - waiting for file changes before starting…

Could you try what the errors recommend?

Solving this on Glitch involves pnpm, but since you are not on Glitch I’m not 100% sure.

1 Like

Try focus at the error, It’s not nodemon error, But SQLITE3 error.