-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a check for NodeJS version #662
Conversation
This will generate a warning if not v0.10.33.
Resolves #660. |
+1 |
I don't think it's needed anywhere else, and could possibly be removed when we re-work the code for v0.12. |
@@ -308,6 +308,11 @@ Origin.prototype.startServer = function () { | |||
serverOptions.minimal = true; | |||
} | |||
|
|||
// Check the NodeJS version | |||
if (process.version !== 'v0.10.33') { | |||
logger.log('warn', 'Incorrect version of NodeJS required -- this code requires v0.10.33 to run correctly.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the message could worded a little better, here. I suggest:
"You are running an unsupported version of NodeJS (" + process.version + "). This application has only been fully tested on NodeJS v0.10.33. It is recommended that you use that version instead."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Me fail English? That's unpossible.
PR updated. ;)
+1 |
+1 ralphie |
Added a check for NodeJS version
This will generate a warning if not v0.10.33.