jonathonor / syncBot

A bot that syncs roles between multiple discord servers.
https://www.jonsbots.com/syncBot
28 stars 16 forks source link

Bot can't start (first install) #25

Open SDS1234 opened 1 year ago

SDS1234 commented 1 year ago

Describe the bug Bot can't start (first install)

To Reproduce Steps to reproduce the behavior: run run.js

Log npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@discordjs/collection@1.5.0', npm WARN EBADENGINE required: { node: '>=16.9.0' }, npm WARN EBADENGINE current: { node: 'v16.6.1', npm: '7.20.3' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@discordjs/util@0.2.0', npm WARN EBADENGINE required: { node: '>=16.9.0' }, npm WARN EBADENGINE current: { node: 'v16.6.1', npm: '7.20.3' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@discordjs/rest@1.7.0', npm WARN EBADENGINE required: { node: '>=16.9.0' }, npm WARN EBADENGINE current: { node: 'v16.6.1', npm: '7.20.3' } npm WARN EBADENGINE }

up to date, audited 56 packages in 1s 14 packages are looking for funding run npm fund for details found 0 vulnerabilities npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@discordjs/collection@1.5.0', npm WARN EBADENGINE required: { node: '>=16.9.0' }, npm WARN EBADENGINE current: { node: 'v16.6.1', npm: '7.20.3' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@discordjs/rest@1.7.0', npm WARN EBADENGINE required: { node: '>=16.9.0' }, npm WARN EBADENGINE current: { node: 'v16.6.1', npm: '7.20.3' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@discordjs/util@0.2.0', npm WARN EBADENGINE required: { node: '>=16.9.0' }, npm WARN EBADENGINE current: { node: 'v16.6.1', npm: '7.20.3' } npm WARN EBADENGINE }

up to date, audited 56 packages in 541ms 14 packages are looking for funding run npm fund for details found 0 vulnerabilities file:///home/container/run.js:17 Client, GatewayIntentBits ^^^^^^^^^^^^^^^^^ SyntaxError: The requested module 'discord.js' does not provide an export named 'GatewayIntentBits' at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21) at async ModuleJob.run (node:internal/modules/esm/module_job:179:5) at async Loader.import (node:internal/modules/esm/loader:178:24) at async Object.loadESM (node:internal/process/esm_loader:68:5) at async handleMainPromise (node:internal/modules/run_main:63:12)

jonathonor commented 1 year ago

What node version do you have?

you can get this information by running node -v in a terminal/command prompt

SDS1234 commented 1 year ago

I'm using node version v16.6.1

SDS1234 commented 1 year ago

Even v.16.20.0 doesn't work. What's wrong with the GatewayIntentBits?

jonathonor commented 1 year ago

I think I have the engine set to 18.x please try that, or simply downgrade the engine in package.json to be 16.x the bot should work.

On May 3, 2023, at 2:35 AM, SDS1234 @.***> wrote:

 Even v.16.20.0 doesn't work

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

SDS1234 commented 1 year ago

Didn't fix the Problem. This is the error when using 16.x

`up to date, audited 56 packages in 742ms 14 packages are looking for funding run npm fund for details found 0 vulnerabilities

up to date, audited 56 packages in 565ms 14 packages are looking for funding run npm fund for details found 0 vulnerabilities file:///home/container/run.js:17 Client, GatewayIntentBits ^^^^^^^^^^^^^^^^^ SyntaxError: The requested module 'discord.js' does not provide an export named 'GatewayIntentBits' at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21) at async ModuleJob.run (node:internal/modules/esm/module_job:189:5) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:530:24) at async loadESM (node:internal/process/esm_loader:91:5) at async handleMainPromise (node:internal/modules/run_main:65:12)`