Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

253
Views
Getting a node:error error when running Discord bot online

I'm getting this error when running my discord bot code online. This doesn't happen when I'm running it on VSCode and I'm not able to figure out why. How can I stop this error from happening?

RuntimeError: Cannot find module 'node:events'
Require stack:
- /opt/node_modules/discord.js/src/client/BaseClient.js

Error: Cannot find module 'node:events'
Require stack:
- /opt/node_modules/discord.js/src/client/BaseClient.js

The JSON output of the error is below.
{
  "error": {
    "type": "RuntimeError",
    "message": "Cannot find module 'node:events'\nRequire stack:\n- /opt/node_modules/discord.js/src/client/BaseClient.js",
    "stack": "Error: Cannot find module 'node:events'\nRequire stack:\n- /opt/node_modules/discord.js/src/client/BaseClient.js"
  }
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!