- changed status to wontfix
npm start: SyntaxError: Unexpected token ILLEGAL
I'm going to apologize in advance for being a complete Node.js newbie. I'm trying to set up a new hipchat add on using this repo, and during installation, when I try to run npm start I'm getting this error:
phil@philbuntu:/var/www/html/my-hipchat-add-on/my-hipchat-add-on$ AC_LOCAL_BASE_URL=https://0bbca244.ngrok.io node app.js
/var/www/html/my-hipchat-add-on/my-hipchat-add-on/lib/hipchat.js:113
resource: /room/${roomId}?expand=participants
^
SyntaxError: Unexpected token ILLEGAL
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 module.exports (/var/www/html/my-hipchat-add-on/my-hipchat-add-on/routes/index.js:6:17)
at Object.<anonymous> (/var/www/html/my-hipchat-add-on/my-hipchat-add-on/app.js:74:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
I'm on Ubuntu 15.10, with node -v 0.10.25
I'm assuming this is a dependency problem, but just wanted to get some clarification. Shouldn't npm install complain here? Do I need redis installed before running this? Thanks in advance.
Comments (5)
-
Account Deactivated -
reporter Thanks for the quick response Rich. Now to find a sane way to upgrade on Ubuntu :)
-
Account Deactivated Take a look at https://github.com/creationix/nvm
-
reporter Closing this. Upgraded to 5.2 and working great now. Thanks again
-
reporter - changed status to closed
- Log in to comment
Hi Phil. This issue is due to the fact that you're running on a very old version of Node (0.10). If you update your Node to the latest (5.2) or even one of the 4.x versions, this should work just fine.