jjclark1982 / factorio-control-panel

Web admin interface for Factorio headless game server
http://jjclark1982.github.io/factorio-control-panel/
23 stars 10 forks source link

SyntaxError: Unexpected token > #1

Open crogers2287 opened 8 years ago

crogers2287 commented 8 years ago

Whenever I run /usr/local/bin/factorio-control-panel

I receive this error:

/usr/local/lib/node_modules/factorio-control-panel/server.js:37
admin.get('/', (req, res, next)=>{
                                ^
SyntaxError: Unexpected token >
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3

The server never starts.

crogers2287 commented 8 years ago

Feel free to close.

For some reason node wasn't being installed as the most current version. Once updated server launched fine.

HeilTec commented 7 years ago

http://www.ecma-international.org/ecma-262/6.0/#sec-arrow-function-definitions