File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,6 @@ exports.checkForBrokenNode = function () {
16
16
var nodejs = checkVersion ( process . version )
17
17
if ( nodejs . broken ) {
18
18
console . error ( 'ERROR: npm is known not to run on Node.js ' + process . version )
19
- supportedNode . forEach ( function ( rel ) {
20
- if ( semver . satisfies ( nodejs . version , rel . ver ) ) {
21
- console . error ( 'Node.js ' + rel . ver + " is supported but the specific version you're running has" )
22
- console . error ( 'a bug known to break npm. Please update to at least ' + rel . min + ' to use this' )
23
- console . error ( 'version of npm. You can find the latest release of Node.js at https://nodejs.org/' )
24
- process . exit ( 1 )
25
- }
26
- } )
27
- var supportedMajors = supportedNode . map ( function ( n ) { return n . ver } ) . join ( ', ' )
28
19
console . error ( "You'll need to upgrade to a newer Node.js version in order to use this" )
29
20
console . error ( 'version of npm. You can find the latest version at https://nodejs.org/' )
30
21
process . exit ( 1 )
@@ -35,7 +26,6 @@ exports.checkForUnsupportedNode = function () {
35
26
var nodejs = checkVersion ( process . version )
36
27
if ( nodejs . unsupported ) {
37
28
var log = require ( 'npmlog' )
38
- var supportedMajors = supportedNode . map ( function ( n ) { return n . ver } ) . join ( ', ' )
39
29
log . warn ( 'npm' , 'npm does not support Node.js ' + process . version )
40
30
log . warn ( 'npm' , 'You should probably upgrade to a newer version of node as we' )
41
31
log . warn ( 'npm' , "can't make any promises that npm will work with this version." )
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ var versions = [
30
30
[ 'v9.3.0' , false , false ] ,
31
31
[ 'v10.0.0-0' , false , false ] ,
32
32
[ 'v11.0.0-0' , false , false ] ,
33
- [ 'v12.0.0-0' , false , false ]
33
+ [ 'v12.0.0-0' , false , false ] ,
34
+ [ 'v13.0.0-0' , false , false ]
34
35
]
35
36
36
37
test ( 'versions' , function ( t ) {
You can’t perform that action at this time.
0 commit comments