Skip to content

issues with running Parse Server with Phusion Passenger on Dreamhost VPS #149

Closed

Description

@mikepaggi

I've currently setup a vanilla Parse Server / Express.js(Node) on my Dreamhost VPS with Node.js 5.5.0 and using Phusion Passenger.

When I run locally on my Mac with same environment (though i think i have newer Passenger installed though i don't know how it would be affected by this issue) I get this error and it doesn't happen to me locally.

/home/USERNAME/DOMAIN/public/node_modules/parse-server/index.js:153 request(options, (error, response, body) => { ^^ SyntaxError: Unexpected token => at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at Object.<anonymous> (/home/USERNAME/DOMAIN/public/app.js:2:19) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10)

Activity

  1. gfosco commented on Feb 1, 2016

    @gfosco
    Contributor

    Are you sure they are using Node 5? The "=>" syntax is ES6 JavaScript and supported by Node 4.1 and above...

  2. mikepaggi commented on Feb 1, 2016

    @mikepaggi
    Author

    Yes that was my first thoughts as maybe it was running a different node version. I setup nvm set it to use 5.5.0. Do you think it's using the system version when I'm not ssh'ed into the box?

  3. gfosco commented on Feb 1, 2016

    @gfosco
    Contributor

    I'm not sure, maybe you can raise this with Dreamhost support. Closing since it does not appear to be a problem with parse-server.

  4. added a commit that references this issue on Feb 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions