Skip to content
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

Merged
merged 2 commits into from
May 5, 2015
Merged

Added a check for NodeJS version #662

merged 2 commits into from
May 5, 2015

Conversation

brian-learningpool
Copy link
Member

This will generate a warning if not v0.10.33.

This will generate a warning if not v0.10.33.
@brian-learningpool
Copy link
Member Author

Resolves #660.

@taylortom
Copy link
Member

+1
Did we want to have the version required pulled in from a config or anything? (not sure if this is needed anywhere else)

@brian-learningpool
Copy link
Member Author

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.');

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."

Copy link
Member Author

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. ;)

@finbartracey1
Copy link
Contributor

+1

@dennis-learningpool
Copy link
Member

+1 ralphie

brian-learningpool added a commit that referenced this pull request May 5, 2015
Added a check for NodeJS version
@brian-learningpool brian-learningpool merged commit 8494049 into develop May 5, 2015
@brian-learningpool brian-learningpool deleted the issue/660 branch May 5, 2015 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants