brewfactory / BrewCore

SparkCore powered BIAB brewing system. Brew your own beer.
MIT License
120 stars 18 forks source link

SyntaxError: Unexpected token * #12

Closed Johnwulp closed 9 years ago

Johnwulp commented 9 years ago

When starting app.js a unexpected token appears:

node --harmony app.js

/volume1/public/Troep/BC/BrewCore/app.js:93 app.use(function () { ^ 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

npm ERR! BrewCore@1.1.2 start: node --harmony app.js npm ERR! Exit status 8 npm ERR! npm ERR! Failed at the BrewCore@1.1.2 start script. npm ERR! This is most likely a problem with the BrewCore package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node --harmony app.js npm ERR! You can get their info via: npm ERR! npm owner ls BrewCore npm ERR! There is likely additional logging output above. npm ERR! System Linux 2.6.32.12 npm ERR! command "/usr/bin/node" "/usr/bin/npm" "start" npm ERR! cwd /volume1/public/Troep/BC/BrewCore npm ERR! node -v v0.10.33 npm ERR! npm -v 1.4.28 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /volume1/public/Troep/BC/BrewCore/npm-debug.log npm ERR! not ok code 0

hekike commented 9 years ago

You should use a different node version ;)

"engines": {
    "node": "0.11.x"
  }
hekike commented 9 years ago

I put it into the README. https://github.com/brewfactory/BrewCore/commit/55107637c3c1e8092432ed1b3c110c16bb9f0848