File tree Expand file tree Collapse file tree 4 files changed +190
-1055
lines changed Expand file tree Collapse file tree 4 files changed +190
-1055
lines changed Original file line number Diff line number Diff line change 7
7
"access" : " public"
8
8
},
9
9
"dependencies" : {
10
- "@react-native-community/cli-doctor" : " 12.0.0-alpha.7 " ,
10
+ "@react-native-community/cli-doctor" : " 12.0.0-alpha.11 " ,
11
11
"appdirsjs" : " ^1.2.4" ,
12
12
"chalk" : " ^4.1.2" ,
13
13
"find-up" : " ^5.0.0" ,
Original file line number Diff line number Diff line change @@ -306,7 +306,16 @@ async function getPackagesVersion(
306
306
ranges ,
307
307
availableVersions ,
308
308
) ;
309
- workingVersions [ packageName ] = workingVersion ;
309
+
310
+ if ( workingVersion !== null ) {
311
+ workingVersions [ packageName ] = workingVersion ;
312
+ } else {
313
+ logger . warn (
314
+ `Could not find a version that matches all ranges for ${ chalk . bold (
315
+ packageName ,
316
+ ) } . Please resolve this issue manually.`,
317
+ ) ;
318
+ }
310
319
}
311
320
312
321
return workingVersions ;
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ const handleError = (err: Error) => {
41
41
}
42
42
process . exit ( 1 ) ;
43
43
} ;
44
+
44
45
function printExamples ( examples : Command [ 'examples' ] ) {
45
46
let output : string [ ] = [ ] ;
46
47
@@ -172,7 +173,6 @@ async function setupAndRun() {
172
173
}
173
174
174
175
let config : Config | undefined ;
175
-
176
176
try {
177
177
config = loadConfig ( ) ;
178
178
You can’t perform that action at this time.
0 commit comments