dhruv-2015 / JIOTVServer

JIOTV Server Script is made to Streaming LiveTV Channels from JIOTV using indian server (vps) or your phone and Play it on Apps or Browser ( Using New APIs )
https://discord.gg/suyzkCQKhC
152 stars 98 forks source link

SyntaxError: Unexpected token '.' #15

Closed Jyoti-Kabir closed 1 year ago

Jyoti-Kabir commented 1 year ago

node index.js or ./start.sh throws this error :-

SyntaxError: Unexpected token '.'
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
file:///home/bakshi/JTVServer/build/handler.js:1217
                    req.connection?.remoteAddress ||
                                   ^

OS: Xubuntu 22.04 LTS Nodejs version: v12.22.9 npm version: 8.5.1

Jyoti-Kabir commented 1 year ago

When I clone this repo, install the packages and run start.sh, I get the following error :-

SyntaxError: Unexpected reserved word
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
file:///home/bakshi/Downloads/JIOTVServer/build/handler.js:1101
await server.init({ env: process.env });
^^^^^
Jyoti-Kabir commented 1 year ago

I am sorry, the problem was with the node version, it was pretty old.