IgorKowalczyk/discord-ssh

SyntaxError: Unexpected token '.'

Closed this issue · 1 comments

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

Check out #226 (v3 release soon!)