Added minimum node version requirement (#3962)
This commit is contained in:
committed by
Florent Vilmart
parent
51d2dd92cb
commit
622f97064a
@@ -144,6 +144,11 @@ class ParseServer {
|
|||||||
objectIdSize = defaults.objectIdSize,
|
objectIdSize = defaults.objectIdSize,
|
||||||
__indexBuildCompletionCallbackForTests = () => {},
|
__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
|
// Initialize the node client SDK automatically
|
||||||
Parse.initialize(appId, javascriptKey || 'unused', masterKey);
|
Parse.initialize(appId, javascriptKey || 'unused', masterKey);
|
||||||
Parse.serverURL = serverURL;
|
Parse.serverURL = serverURL;
|
||||||
|
|||||||
Reference in New Issue
Block a user