mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
Merge pull request #77 from meew0/master
Add hard check that exits node if the node version is less than 0.12.7.
This commit is contained in:
@@ -17,6 +17,15 @@ var major = parseInt(v[0]),
|
|||||||
minor = parseInt(v[1]),
|
minor = parseInt(v[1]),
|
||||||
patch = parseInt(v[2]);
|
patch = parseInt(v[2]);
|
||||||
|
|
||||||
|
if((major == 0 && minor < 12) || (major == 0 && minor == 12 && patch < 7)) {
|
||||||
|
console.log("discord.js doesn't support node versions less than 0.12.7.");
|
||||||
|
console.log("If you /really/ want to run it on this node (" +
|
||||||
|
process.version + "), then remove the check from entrypoint.js.");
|
||||||
|
console.log("However, this is unsupported and WILL cause problems.");
|
||||||
|
console.log("Exiting now.");
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
// at the moment no node version has full ES6 support
|
// at the moment no node version has full ES6 support
|
||||||
use5();
|
use5();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user