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 'discord.js' #30

Open
mckenna654 opened this issue Jan 20, 2023 · 1 comment
Open

Error: Cannot find module 'discord.js' #30

mckenna654 opened this issue Jan 20, 2023 · 1 comment

Comments

@mckenna654
Copy link

Hi,

Followed the installation guide on my Debian machine however getting the following error when running node index.json.

(plex) mckenna654@reddiscordbot-1:~/plex_discord_role_management$ node index.js
internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module 'discord.js'
Require stack:
- /home/mckenna654/plex_discord_role_management/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/mckenna654/plex_discord_role_management/index.js:1:17)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/mckenna654/plex_discord_role_management/index.js' ]
@RappyTV
Copy link

RappyTV commented Mar 14, 2023

you have to execute npm install or npm i to install all the required packages

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

2 participants