claabs / epicgames-freegames-node

Automatically login and find available free games the Epic Games Store. Sends you a prepopulated checkout link so you can complete the checkout after logging in. Supports multiple accounts, login sessions, and scheduled runs.
https://hub.docker.com/r/charlocharlie/epicgames-freegames
MIT License
1.33k stars 89 forks source link

Problem with running on arm64 oracle free #279

Closed PottersGame closed 6 months ago

PottersGame commented 1 year ago

Hello i have a problem i cant figere out how to start this aplication withd docker i started it but i cant connect to it throught the browser so i tried the node method and i got this error

ubuntu@matrix:~/epicgames-freegames-node/epicgames-freegames-node$ npm run start:ts

> epicgames-freegames-node@4.1.0 start:ts /home/ubuntu/epicgames-freegames-node/epicgames-freegames-node
> ts-node src/index.ts

/home/ubuntu/epicgames-freegames-node/epicgames-freegames-node/src/common/config/classes.ts:201
        this.localtunnel = process.env.LOCAL_TUNNEL?.toLowerCase() === 'true' || false;
                                                    ^

SyntaxError: Unexpected token .
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Module.m._compile (/home/ubuntu/epicgames-freegames-node/epicgames-freegames-node/node_modules/ts-node/src/index.ts:1455:23)
    at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Object.require.extensions.(anonymous function) [as .ts] (/home/ubuntu/epicgames-freegames-node/epicgames-freegames-node/node_modules/ts-node/src/index.ts:1458:12)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/ubuntu/epicgames-freegames-node/epicgames-freegames-node/src/common/config/index.ts:1:1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! epicgames-freegames-node@4.1.0 start:ts: `ts-node src/index.ts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the epicgames-freegames-node@4.1.0 start:ts script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2022-09-24T10_57_51_694Z-debug.log
ubuntu@matrix:~/epicgames-freegames-node/epicgames-freegames-node$ SyntaxError: Unexpected token .
SyntaxError:: command not found
claabs commented 1 year ago

From the log, it looks like you're not running in Docker, but instead just running it from source. The error you're seeing is because you're not on Node 16 or later.

PottersGame commented 1 year ago

o i fixed it but i am not shure how can i connect to the webserver becouse i set up it to use epic.potter.sk but it doesnt look like to work