BeepIsla / CSGO-Overwatch-Bot

Automatically solve CSGO Overwatch cases
GNU Affero General Public License v3.0
186 stars 45 forks source link

Run error in linux #216

Closed TheZafkiel closed 2 years ago

TheZafkiel commented 2 years ago

I try to run it in linux and there seems to be some problems lin

/www/wwwroot/CSGO-Overwatch-Bot/index.js:45 (async () => { ^

SyntaxError: Unexpected token ( at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:549:28) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.runMain (module.js:611:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:160:9)

BeepIsla commented 2 years ago

Seems like you are running some very ancient NodeJS version. As per README the minimum version is 12. Search up how to update NodeJS on your distro and try again.

TheZafkiel commented 2 years ago

Thanks, I can use it after updating nodejs