well as usually i wake up and trying to code,but i found that suddenly it said the require thing didnt work, it said internal/modules/cjs/loader.js:584 throw err; ^ Error: Cannot find module 'discord.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) at Function.Module._load (internal/modules/cjs/loader.js:508:25) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:22:18) at Object.<anonymous> (/app/index.js:1:94) at Module._compile (internal/modules/cjs/loader.js:701:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10) at Module.load (internal/modules/cjs/loader.js:600:32) at tryModuleLoad (internal/modules/cjs/loader.js:539:12) at Function.Module._load (internal/modules/cjs/loader.js:531:3)
***[quote=“blate, post:1, topic:23146, full:true”]
well as usually i wake up and trying to code,but i found that suddenly it said the require thing didnt work, it said internal/modules/cjs/loader.js:584 throw err; ^ Error: Cannot find module 'discord.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) at Function.Module._load (internal/modules/cjs/loader.js:508:25) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:22:18) at Object.<anonymous> (/app/index.js:1:94) at Module._compile (internal/modules/cjs/loader.js:701:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10) at Module.load (internal/modules/cjs/loader.js:600:32) at tryModuleLoad (internal/modules/cjs/loader.js:539:12) at Function.Module._load (internal/modules/cjs/loader.js:531:3)
and my package is { "name": "master-bot", "version": "1.0.0", "description": "a discord music bot with guild , gifs and misc commands", "main": "index.js", "scripts": { "start": "node .", "pretest": "eslint --ignore-path .gitignore .", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Nir Gal", "license": "ISC", "dependencies": {
-
"array-sort": "^1.0.0",
-
"ascii-table": "^0.0.9",
-
"betterqdb":"^0.0.7",
-
"canvas":"^2.6.0",
-
"cheerio": "^1.0.0-rc.3",
-
"common-tags": "^1.8.0",
-
"discord-economy": "^1.2.2",
-
"discord.js": "^11.6.2",
-
"discord.js-commando": "github:discordjs/Commando",
-
"discordmeme.js": "^10.0.2",
-
"dotenv": "^8.2.0",
-
"express": "^4.17.1",
-
"ffmpeg-static": "^4.0.1",
-
"file-system": "^2.2.2",
-
"integer": "^3.0.1",
-
"iso-639-1": "^2.1.0",
-
"mathjs": "^6.6.2",
-
"node-fetch": "^2.6.0",
-
"node-opus": "^0.3.3",
-
"quick.db": "^6.3.2",
-
"random-puppy": "^1.1.0",
-
"simple-youtube-api": "^5.2.1",
-
"snekfetch": "^4.0.4",
-
"sudo-js":"^1.0.2",
-
"sqlite3": "^4.1.1",
-
"superagent": "^5.2.2",
-
"table": "^5.4.6",
-
"util": "^0.12.1",
-
"webcord": "^1.0.4",
-
"ytdl-core": "^2.0.1"
}, "devDependencies": {
-
"babel-eslint": "^10.0.3",
-
"eslint": "^5.16.0",
-
"nodemon": "^1.19.4",
-
}"prettier": "^1.19.1"
}`
can any1 help pls
another bot that i own is working perfectly,the package is the same,i just dont know what is the problem.If you can help i will surely be super apre