- wenn ich npm Startbefehl laufen Ich erhalte die folgenden Fehler
- ich die folgenden Schritte in der Verbindung gefolgt https://github.com/kriasoft/react-starter-kit/blob/master/docs/getting-started.md
- kann Ihnen sagen, mir, wie man es beheben
- Fehler bietet unter
xxx-nameKumar - MacBook-Pro: MeineAnw xxx-name $ npm startennpm Startbefehl Ich erhalte Syntaxerror: Verwendung von const im Strict-Modus
> @ start /Users/xxx-name/Desktop/FrontEnd/MyApp
> babel-node tools/run start
/Users/xxx-name/Desktop/FrontEnd/MyApp/tools/run.js:20
const task = typeof fn.default === 'undefined' ? fn : fn.default;
^^^^^
SyntaxError: Use of const in strict mode.
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at loader (/Users/xxx-name/Desktop/FrontEnd/MyApp/node_modules/babel-cli/node_modules/babel-register/lib/node.js:126:5)
at Object.require.extensions.(anonymous function) [as .js] (/Users/xxx-name/Desktop/FrontEnd/MyApp/node_modules/babel-cli/node_modules/babel-register/lib/node.js:136:7)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at /Users/xxx-name/Desktop/FrontEnd/MyApp/node_modules/babel-cli/lib/_babel-node.js:161:27
at Object.<anonymous> (/Users/xxx-name/Desktop/FrontEnd/MyApp/node_modules/babel-cli/lib/_babel-node.js:162:7)
at Module._compile (module.js:460:26)
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! @ start: `babel-node tools/run start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script 'babel-node tools/run start'.
npm ERR! This is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! babel-node tools/run start
npm ERR! You can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/xxx-name/Desktop/FrontEnd/MyApp/npm-debug.log
eingeben Sie müssen nur 'npm Starten' auszuführen. – gnerkus
@gnerkus Ich ausführte npm Start, aber immer noch bekomme ich den Fehler ... warum xxx-nameKumar - MacBook-Pro: MyApp xxx-name $ npm starten –
gnerkus, er tut genau das .... texi, das ist es nicht , lies den Fehler: SyntaxError: Verwendung von const im strikten Modus. – JordanHendrix