npm start: SyntaxError: Unexpected token ILLEGAL

Issue #12 closed
Phil Stephenson created an issue

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)

  1. Rich Manalang Account Deactivated

    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.

  2. Phil Stephenson reporter

    Thanks for the quick response Rich. Now to find a sane way to upgrade on Ubuntu :)

  3. Log in to comment