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

SyntaxError: Unexpected token '.' #225

Closed
1 of 2 tasks
Remzer59 opened this issue Dec 24, 2023 · 3 comments · Fixed by #226
Closed
1 of 2 tasks

SyntaxError: Unexpected token '.' #225

Remzer59 opened this issue Dec 24, 2023 · 3 comments · Fixed by #226
Assignees
Labels
bug Something isn't working

Comments

@Remzer59
Copy link

Environment

Hello, I've encountered the following error:

root@server:~/discord-ssh# sudo npm run start

discord-ssh@2.0.1 start
node index.js

file:///root/discord-ssh/index.js:49
if (options?.terminal)
^

SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
at async link (internal/modules/esm/module_job.js:42:21)

Running on ubuntu server 22.04, as root

Would you know how to correct that ?

TIA

Best regards,

Steps To Reproduce

Launch the "npm run start" cmd

Software Version

2.0.1

Expected Behavior

run the bot

Actual Behavior

crash

Screenshots

No response

Severity

Major

Priority

High

Type

Functional

Reproducible

  • Yes
  • No

Additional Information

No response

@IgorKowalczyk
Copy link
Owner

Check out #226 (v3 release soon!)

@georgetalilo
Copy link

hey! im still having this bug.

@georgetalilo
Copy link

sorry it was my mistake, i wasn't on the right version of node!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants