acdlite / acdlite/flummox-isomorphic-demo
make watch error
- Vorherrschende Sprache
- JavaScript
- Sterne
- 89
- Forks
- 17
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I cloned this repo and run `make watch`. Got the error below:
/test-project/node_modules/koa/lib/application.js:174
function *respond(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 Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (../../src/server/app.js:7:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
5 Apr 15:38:07 - [nodemon] app crashed - waiting for file changes before starting...
My node version is v0.12.2
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
The error occurs in koa's application.js due to a generator function syntax not supported in Node.js v0.12.2. Check the project's package.json for required Node version and the makefile for the watch script. Update Node.js to a version that supports ES6 generators (likely v4+), or investigate if the project dependencies need downgrading. Running `make watch` after the fix should start the server without the syntax error.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, node.js
- Bereich
- build-system, cli
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 40/100