GitHub Documentation Patreon donate button

Error colyseus/lib/Server.js:22 when run on Real Server

  • I have build tic tac toe example in my local server it run normally but when i push it on real server i get error like this:
    constructor(options = {}) {

    SyntaxError: Unexpected token =
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/werewolf/server/node_modules/colyseus/lib/index.js:8:16)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)

    My server using: Ubuntu Linux

  • @vnshine i have resolved it
    will be keep this for someone who have need that
    just update nodejs to last version


© 2020 Endel Dreyer