/rbd/pnpm-volume/a26ec498-1144-42e8-b124-53e769567236/node_modules/.registry.npmjs.org/bindings/1.5.0/node_modules/bindings/bindings.js:121
throw e;
^
Error: The module ‘/rbd/pnpm-volume/a26ec498-1144-42e8-b124-53e769567236/node_modules/.registry.npmjs.org/better-sqlite3/6.0.1/node_modules/better-sqlite3/build/Release/better_sqlite3.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
the module (for instance, usingnpm rebuild
ornpm install
).
at Object.Module._extensions…node (internal/modules/cjs/loader.js:800:18)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
at bindings (/rbd/pnpm-volume/a26ec498-1144-42e8-b124-53e769567236/node_modules/.registry.npmjs.org/bindings/1.5.0/node_modules/bindings/bindings.js:112:48)
at Object. (/rbd/pnpm-volume/a26ec498-1144-42e8-b124-53e769567236/node_modules/.registry.npmjs.org/better-sqlite3/6.0.1/node_modules/better-sqlite3/lib/database.js:6:40)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
Is node.js at version 12.x?
Yes.
2 Nis 2020 Per, saat 19:27 tarihinde Riverside Rocks via Glitch Support glitch@discoursemail.com şunu yazdı:
Hi @MoonArmy, welcome to the forum!
Can you share which project you’re working on?
2 Nis 2020 Per, saat 23:13 tarihinde Potch via Glitch Support glitch@discoursemail.com şunu yazdı:
Try using
npm uninstall node
npm uninstall better-sqlite3
then
npm install --save node@12.13.0
npm install --save better-sqlite3
i got new error this time;
throw err;
^
Error: Cannot find module ‘canvas’
Require stack:
Jump To- /app/olaylar/resimliGirişKlasik.js
Jump To- /app/util/eventLoader.js
Jump To- /app/bot.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
at Function.Module._load (internal/modules/cjs/loader.js:526:27)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
Jump Toat Object. (/app/olaylar/resimliGirişKlasik.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Module.require (internal/modules/cjs/loader.js:666:19)
but the canvas module is already installed
package.json file;
{
“//1”: “describes your app and its dependencies”,
“//2”: “docs url”,
“//3”: “updating this file will download and update your packages”,
“name”: “hello-express”,
“version”: “0.0.1”,
“description”: “A simple Node app built on Express, instantly up and running.”,
“main”: “bot.js”,
“scripts”: {
“start”: “node bot.js”
},
“dependencies”: {
“better-sqlite3”: “^6.0.1”,
“body-parser”: “^1.18.3”,
“canvas”: “^2.6.1”,
“chalk”: “^2.4.1”,
“cleverbot.io”: “^1.0.4”,
“colors”: “^1.3.2”,
“common-tags”: “^1.8.0”,
“cpu-stat”: “^2.0.1”,
“discord.js”: “^12.0.0”,
“discord.js-commando”: “^0.10.0”,
“ejs”: “^2.6.1”,
“express”: “^4.16.4”,
“express-session”: “^1.15.6”,
“ffmpeg-static”: “^4.0.1”,
“figlet”: “^1.2.1”,
“fs”: “^0.0.2”,
“helmet”: “^3.14.0”,
“jimp”: “^0.5.4”,
“level-session-store”: “^2.1.0”,
“marked”: “^0.5.1”,
“math-expression-evaluator”: “^1.2.17”,
“moment”: “^2.22.2”,
“moment-duration-format”: “^2.2.2”,
“moment-timezone”: “^0.5.21”,
“ms”: “^2.1.1”,
“node”: “^12.13.0”,
“node-google-translate-skidz”: “^1.1.2”,
“node-opus”: “^0.3.0”,
“oauth”: “^0.9.15”,
“oauth2”: “^0.0.1”,
“os”: “^0.1.1”,
“passport”: “^0.4.0”,
“passport-discord”: “^0.1.3”,
“passport-oauth2”: “^1.4.0”,
“passport-strategy”: “^1.0.0”,
“path”: “^0.12.7”,
“request”: “^2.88.0”,
“simple-youtube-api”: “^5.0.2”,
“snekfetch”: “^4.0.4”,
“speedtest-net”: “^1.4.3”,
“steam-provider”: “^0.3.2”,
“superagent”: “^4.0.0-beta.5”,
“url”: “^0.11.0”,
“weather-js”: “^2.0.0”,
“xmlhttprequest”: “^1.8.0”,
“ytdl-core”: “^2.0.1”
},
“engines”: {
“node”: “12.x”
},
“repository”: {
“url”: “a url”
},
“license”: “MIT”,
“keywords”: [
“node”,
“glitch”,
“express”
]
}
Try
npm install --save canvas@2.6.1
in the console or install it through the package.json.
U serious? its already installed. İ shared my package.json
4 Nis 2020 Cmt, saat 06:40 tarihinde A B0t C0d3r via Glitch Support glitch@discoursemail.com şunu yazdı:
I mean, do it again from the console, maybe it didn’t install for a reason.
Sometimes when you install a dependency, it only shows the error in the console.
Just because it’s in the package.json, doesn’t mean it is installed.
i was already installed it using console. And now i tried to remove it and install it again. Still same.
5 Nis 2020 Paz, saat 06:34 tarihinde A B0t C0d3r via Glitch Support glitch@discoursemail.com şunu yazdı:
Glitch uses pnpm
not npm
. Try again except replace npm
with pnpm
, or maybe remove node_modules
and shrinkwrap