Cannot find module issue https://glitch.com/~erenkcilar

module.js:550
throw err;
^
Error: Cannot find module 'discord.js'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/app/bot.js:1:79)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)

discord.js already installed, can you find a solution


MOD EDIT: formatting

Can you provide us with your package.json

{
  "//1": "describes your app and its dependencies",
  "//2": "https://docs.npmjs.com/files/package.json",
  "//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": {
    "array-sort": "^1.0.0",
    "canvas": "^2.4.1",
    "canvas-constructor": "^3.0.0",
    "cleverbot.io": "^1.0.4",
    "cowsay": "^1.4.0",
    "dblapi.js": "^2.3.0",
    "discord.js": "^11.4.2",
    "discord.js-commando": "^0.10.0",
    "express": "^4.16.4",
    "figlet": "^1.2.1",
    "fortnitetracker-7days-stats": "^3.1.2",
    "generate-password": "^1.4.1",
    "google": "^2.1.0",
    "google-tts-api": "^0.0.4",
    "hastebin-gen": "^1.3.1",
    "isgd": "^1.1.3",
    "jimp": "^0.6.0",
    "js-robloxapi": "^1.0.6",
    "math-expression-evaluator": "^1.2.17",
    "moment": "^2.24.0",
    "moment-duration-format": "^2.2.2",
    "node-google-translate-skidz": "^1.1.2",
    "node-opus": "^0.3.1",
    "node-superfetch": "^0.1.9",
    "qrcode": "^1.3.3",
    "quick.db": "^6.3.2",
    "simple-youtube-api": "^5.1.1",
    "steam-provider": "^0.2.0",
    "table": "^5.1.1",
    "tcmb-doviz-kuru": "^2.0.4",
    "tempy": "^0.2.1",
    "twemoji": "^11.3.0",
    "weather-js": "^2.0.0",
    "ytdl-core": "^0.29.0",
    "passport": "^0.4.0",
    "express-session": "^1.15.6",
    "memorystore": "^1.6.1",
    "passport-discord": "^0.1.3",
    "helmet": "^3.16.0",
    "path": "^0.12.7",
    "klaw": "^3.0.0",
    "ejs": "^2.6.1",
    "chalk": "^2.4.1"
  },
  "engines": {
    "node": "8.x"
  },
  "repository": {
    "url": "https://glitch.com/edit/#!/hello-express"
  },
  "license": "MIT",
  "keywords": [
    "node",
    "glitch",
    "express"
  ]
}

MOD EDIT: formatting

Hey @Erensi_28, welcome to the Glitch forum!

From the errors in your log, I think your database file has been corrupted. The easiest solution is to create a new, blank database file, but that also mean losing the data that’s in the current database file. To recover that data may be a significant undertaking for whoever undertakes that.

If you’re ok losing the data, running these commands in the console should get you back on track:

: > json.sqlite
refresh

That will empty the json.sqlite file where quick.db saves its information and then sync the editor and the backend. The next time quick.db runs it will start writing to that file again.