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 77 "access" : " public"
88 },
99 "dependencies" : {
10- "@react-native-community/cli-doctor" : " 12.0.0-alpha.7 " ,
10+ "@react-native-community/cli-doctor" : " 12.0.0-alpha.11 " ,
1111 "appdirsjs" : " ^1.2.4" ,
1212 "chalk" : " ^4.1.2" ,
1313 "find-up" : " ^5.0.0" ,
Original file line number Diff line number Diff line change @@ -306,7 +306,16 @@ async function getPackagesVersion(
306306 ranges ,
307307 availableVersions ,
308308 ) ;
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+ }
310319 }
311320
312321 return workingVersions ;
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ const handleError = (err: Error) => {
4141 }
4242 process . exit ( 1 ) ;
4343} ;
44+
4445function printExamples ( examples : Command [ 'examples' ] ) {
4546 let output : string [ ] = [ ] ;
4647
@@ -172,7 +173,6 @@ async function setupAndRun() {
172173 }
173174
174175 let config : Config | undefined ;
175-
176176 try {
177177 config = loadConfig ( ) ;
178178
You can’t perform that action at this time.
0 commit comments