File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,12 @@ module.exports = function(ci) {
14
14
function verifyNode ( ) {
15
15
const fullVersion = process . versions . node ;
16
16
const majorVersion = fullVersion . split ( '.' ) [ 0 ] ;
17
- if ( majorVersion >= 6 ) {
17
+ const minorVersion = fullVersion . split ( '.' ) [ 1 ] ;
18
+ if ( majorVersion >= 11 || ( majorVersion === '10' && minorVersion >= 12 ) ) {
18
19
console . log ( `Node:\tv${ fullVersion } ` ) ;
19
- } else if ( majorVersion >= 4 ) {
20
- console . log ( `Node:\tv${ fullVersion } ` ) ;
21
- console . warn (
22
- '\tWarning: Building on Node below version 6 is deprecated. Please use Node 6.x+ to build Atom.'
23
- ) ;
24
20
} else {
25
21
throw new Error (
26
- `node v4 + is required to build Atom. node v${ fullVersion } is installed.`
22
+ `node v10.12 + is required to build Atom. node v${ fullVersion } is installed.`
27
23
) ;
28
24
}
29
25
}
You can’t perform that action at this time.
0 commit comments