Ich versuche Pfeil Funktionen in node v0.10.33
unter Ubuntu 14.04
zu verwenden (Ich bin Knoten mit --harmony
Flagge läuft), aber ich bin immer diese Fehlermeldung:Pfeil Funktionen nicht in Knoten --harmony unter Ubuntu arbeiten
console.log([1,2,3,4].map(x => x*x));
^
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:906:3
Es wird nicht mit dieser Knotenversion unterstützt, auch nicht mit diesem Flag. Siehe http://StackOverflow.com/a/38241325/1385678 –