Ich bin ein neuer Bie zu node.js. Ich erhalte Syntaxfehler:SyntaxError: Unerwartetes Token const {in node.js
Unexpected token { in my node.js application
Ich benutze v4.5.5 auf Windows 7 64 bit os.
const {
^
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)
Lassen Sie mich wissen, wie Sie das loswerden.
Jede Hilfe wäre willkommen.
Dank
Pradeep
Ohne Ihren Code zu sehen, gibt es absolut keine Möglichkeit zu sagen. – ssube
Warum haben Sie eine '{' nach [const] (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const)? – epascarello
Neuinstallation Knoten https://nodejs.org/en/ – Squirrl