Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'winston' #4

Open
emil1302 opened this issue Feb 15, 2022 · 3 comments
Open

Error: Cannot find module 'winston' #4

emil1302 opened this issue Feb 15, 2022 · 3 comments

Comments

@emil1302
Copy link

emil1302 commented Feb 15, 2022

 node shard.js
internal/modules/cjs/loader.js:905
throw err;
^

Error: Cannot find module 'winston'
Require stack:

  • /home/runner/Bot-with-Advanced-Dashboard-1/utils/logger.js
  • /home/runner/Bot-with-Advanced-Dashboard-1/shard.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object. (/home/runner/Bot-with-Advanced-Dashboard-1/utils/logger.js:1:46)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:14)
    at Module.require (internal/modules/cjs/loader.js:974:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/runner/Bot-with-Advanced-Dashboard-1/utils/logger.js',
    '/home/runner/Bot-with-Advanced-Dashboard-1/shard.js'
    ]
    }
    exit status 1
@M4riosDev
Copy link

download discord.js

@Relism
Copy link

Relism commented Apr 30, 2022

run "npm install or npm i" in your terminal while being in the root directory of your bot (the directory with all the files).

@eYuM-coder
Copy link

run the bot normally, and the project will handle the rest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants