Friday 20 October 2017

nodejs async/await problem

I've got an app that works fine on my local machine, but i can't get the production server (centos VPS) to accept async/await syntax. I have node 8.5.0 on both machines, and it's the exact same code. I've even tried using the 'enable-async' npm package on the server version, but still no love. Any ideas what I might be able to try next to get it working?edit: I've just discovered that it works fine if node isn't running as root. But I need it to run as root. What could be the reason that async throws errors only when run in root?

Submitted October 20, 2017 at 03:50AM by rEvolutionist3000

No comments:

Post a Comment