Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Unable to install pm2 as a service #23

Closed
dragsssss opened this issue Jan 5, 2017 · 2 comments
Closed

Unable to install pm2 as a service #23

dragsssss opened this issue Jan 5, 2017 · 2 comments
Assignees

Comments

@dragsssss
Copy link

Node version: 0.12.17
Win version: Windows Server 2012 R2 64-bit

Considering this is a different error that was experienced in this issue #2

I know the minimum requirement is 4.0 for node but wondering if there's something obviously wrong with what I'm doing which is breaking it.

image

Thanks.

@jon-hall jon-hall self-assigned this Jan 5, 2017
@jon-hall
Copy link
Owner

jon-hall commented Jan 5, 2017

Hi, unfortunately this is definitely due to using version 0.x of node - the source code uses ES6 features (in this case object literal methods, e.g. { fn() { /*...*/ } }) which node < 4.x doesn't support.

I've previously considered making the library compatible with older versions of node but feel upgrading is the right solution for a production environment; so all I could recommend is upgrade your node version if possible. If you are unable to upgrade I'll consider that another +1 towards making the library backwards compatible to node 0.12.x and can take a look into providing such support when I get an opportunity.

@dragsssss
Copy link
Author

Ok no worries, thanks for your quick response. I'll have a look at what we could do in upgrading the node version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants