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 'node:events' #14
Comments
so okay, sometinh wrong:
RustPlusPlus channel is created with a lot settings... so idk what is wrong with this message above |
By the looks of it you didn't create the bot invitation with the correct options. Check the README in the section 'Create a discord bot'.
|
Bot have administrator privileges, i can't make better and ive follow the readme |
Have you selected bot and applications.commands? |
Because I think it's the applications.commands that might be missing |
Is it possible that its the same bot you used for the other bot? Try to Create a completely new discord bot. |
no it's a new bot |
What nodejs version are you running? |
https://flutterq.com/solved-discordapierror50001-missing-access/ |
Oh nevermind, that was for another problem. Your problem is solution 1... |
v16.14.0 |
i can't make better sorry, ive follow your readme... |
Same problem, same solution... |
Ive re created and same.. have you see my gif??? i can't make better guy... |
I saw the GIF, did you re-invite the bot to your discord server? |
Or did you just click the copy button? |
Ive re created and same. |
Did you remove it from your server and re-invite:ed? |
It's again a new bot and other was kicked and all channel removed before invit him |
Hit me up on Discord instead: Alexemanuelol#8259 |
I know how to invite a bot thanks ^^ Im off for tonight, tomorrow im up ;) |
Okioki, then Im afraid I can't really help you 😕 |
that weird really, im checking in files, open 268426701401227264.json and found:
|
It's when it's trying to register the Slash Commands for your guild. And usually it is solved by adding the 'applications.commands' to the invitation URL. |
Solved |
`npm install
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@discordjs/collection@0.2.4',
npm WARN EBADENGINE required: { node: '>=16.0.0', npm: '>=7.0.0' },
npm WARN EBADENGINE current: { node: 'v14.16.0', npm: '8.5.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@discordjs/rest@0.1.1-canary.0',
npm WARN EBADENGINE required: { node: '>=16.0.0' },
npm WARN EBADENGINE current: { node: 'v14.16.0', npm: '8.5.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'discord.js@13.6.0',
npm WARN EBADENGINE required: { node: '>=16.6.0', npm: '>=7.0.0' },
npm WARN EBADENGINE current: { node: 'v14.16.0', npm: '8.5.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@discordjs/builders@0.11.0',
npm WARN EBADENGINE required: { node: '>=16.0.0', npm: '>=7.0.0' },
npm WARN EBADENGINE current: { node: 'v14.16.0', npm: '8.5.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@discordjs/collection@0.4.0',
npm WARN EBADENGINE required: { node: '>=16.0.0', npm: '>=7.0.0' },
npm WARN EBADENGINE current: { node: 'v14.16.0', npm: '8.5.0' }
npm WARN EBADENGINE }
up to date, audited 210 packages in 2s
12 packages are looking for funding
run
npm fund
for detailsfound 0 vulnerabilities
`
`F:\rust\rustPlusPlus>node index.js
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'node:events'
Require stack:
←[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)←[39m
←[90m at Function.Module._load (internal/modules/cjs/loader.js:725:27)←[39m
←[90m at Module.require (internal/modules/cjs/loader.js:952:19)←[39m
←[90m at require (internal/modules/cjs/helpers.js:88:18)←[39m
at Object. (F:\rust\rustPlusPlus\node_modules\←[4mdiscord.js←[24m\src\client\BaseClient.js:3:22)
←[90m at Module._compile (internal/modules/cjs/loader.js:1063:30)←[39m
←[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)←[39m
←[90m at Module.load (internal/modules/cjs/loader.js:928:32)←[39m
←[90m at Function.Module._load (internal/modules/cjs/loader.js:769:14)←[39m
←[90m at Module.require (internal/modules/cjs/loader.js:952:19)←[39m {
code: ←[32m'MODULE_NOT_FOUND'←[39m,
requireStack: [
←[32m'F:\rust\rustPlusPlus\node_modules\discord.js\src\client\BaseClient.js'←[39m,
←[32m'F:\rust\rustPlusPlus\node_modules\discord.js\src\index.js'←[39m,
←[32m'F:\rust\rustPlusPlus\index.js'←[39m
]
}`
edit: updating nodejs in progress..
The text was updated successfully, but these errors were encountered: