Added minimum node version requirement (#3962)

This commit is contained in:
Benjamin Wilson Friedman
2017-06-27 11:01:49 -07:00
committed by Florent Vilmart
parent 51d2dd92cb
commit 622f97064a

View File

@@ -144,6 +144,11 @@ class ParseServer {
objectIdSize = defaults.objectIdSize,
__indexBuildCompletionCallbackForTests = () => {},
}) {
// verify parse-server is running on node >= 4.6
if (process.versions.node < '4.6') {
throw 'You must run parse-server on node >= 4.6. Your current node version is ' + process.versions.node + '.';
}
// Initialize the node client SDK automatically
Parse.initialize(appId, javascriptKey || 'unused', masterKey);
Parse.serverURL = serverURL;