Prevent builds on Node 7+ until they're fixed

This commit is contained in:
Lee Dohm 2016-12-19 19:06:02 -08:00
parent 2095015e82
commit 0efd95e0ea
No known key found for this signature in database
GPG Key ID: A27E146D71F5F6B6

View File

@ -19,6 +19,8 @@ function verifyNode () {
const majorVersion = fullVersion.split('.')[0]
if (majorVersion >= 4) {
console.log(`Node:\tv${fullVersion}`)
} else if (majorVersion >= 7) {
throw new Error(`Atom does not build properly on node v7+. node v${fullVersion} is installed.`)
} else {
throw new Error(`node v4+ is required to build Atom. node v${fullVersion} is installed.`)
}