-
-
Notifications
You must be signed in to change notification settings - Fork 283
Open
Description
npm run start
[email protected] start /home/runner/automod-bot
nodemon bot.js
[nodemon] 2.0.15
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node bot.js
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module '/home/runner/automod-bot/src/data.json'
Require stack:
- /home/runner/automod-bot/src/utils/miscUtils.js
- /home/runner/automod-bot/src/structures/Command.js
- /home/runner/automod-bot/src/structures/BotClient.js
- /home/runner/automod-bot/src/structures/index.js
- /home/runner/automod-bot/bot.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._resolveFilename (/home/runner/automod-bot/node_modules/module-alias/index.js:49:29)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/runner/automod-bot/src/utils/miscUtils.js:2:14)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/runner/automod-bot/src/structures/Command.js:4:24)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/runner/automod-bot/src/utils/miscUtils.js',
'/home/runner/automod-bot/src/structures/Command.js',
'/home/runner/automod-bot/src/structures/BotClient.js',
'/home/runner/automod-bot/src/structures/index.js',
'/home/runner/automod-bot/bot.js'
]
}
[nodemon] app crashed - waiting for file changes before starting...
My nodejs version its 1.16 and i do npm install and .env
Metadata
Metadata
Assignees
Labels
No labels