[Gelöst] ghome-fhem Unexpected token ...

Begonnen von stefanru, 11 April 2018, 23:28:05

Vorheriges Thema - Nächstes Thema

stefanru

Hi,

habe ghome-fhem installiert von https://github.com/yanniks/ghome-fhem.
Habe mich soweit an die Anleitung gehalten, ist ja alles an fhem-alexa angelehnt.
Leider bekomme ich den unten aufgeführten fehler beim starten von ./bin/ghome.
Habe ich eine zu alte nodejs installation?
Alexa-Fhem läuft bei mir aber ohne Probleme...

P.S.:habe nun noch die neuste nodejs instaliert.
node -v : v4.8.0
nodejs -v : v6.14.1
Fehler bleibt leider.


fhem@raspberrypi:~/ghome-fhem$ ./bin/ghome
/opt/fhem/ghome-fhem/lib/server.js:1578
                    responses.push(...handleControlOnOff.bind(this)(cmd, exec.params.on ? 1 : 0));
                                   ^^^

SyntaxError: Unexpected token ...
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/opt/fhem/ghome-fhem/lib/cli.js:3:14)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)


Danke und Gruß,
Stefan

stefanru

Ok node Version war zu alt.
Neuste installiert mit:
curl -L https://git.io/n-install | bash

Gruß,
Stefan