@@ -95,25 +95,31 @@ function verifyPackageTree() {
9595 ` ${ chalk . bold ( chalk . red ( maybeDep ) ) } (version: ${ chalk . bold (
9696 chalk . red ( depPackageJson . version )
9797 ) } ) \n\n` +
98- `Manually installing incompatible versions is known to cause hard-to-debug issues.\n` +
99- `To fix the dependency tree, try following the steps below in the exact order:\n\n` +
98+ `Manually installing incompatible versions is known to cause hard-to-debug issues.\n\n` +
99+ chalk . red (
100+ `If prefer to ignore this check, add ${ chalk . bold (
101+ 'SKIP_PREFLIGHT_CHECK=true'
102+ ) } to an ${ chalk . bold ( '.env' ) } file in your project.\n` +
103+ `That will permanently disable this message but you might encounter other issues.\n\n`
104+ ) +
105+ `To ${ chalk . green (
106+ 'fix'
107+ ) } the dependency tree, try following the steps below in the exact order:\n\n` +
100108 ` ${ chalk . cyan ( '1.' ) } Delete ${ chalk . bold (
101109 'package-lock.json'
102110 ) } (${ chalk . underline ( 'not' ) } ${ chalk . bold (
103111 'package.json'
104- ) } !) and/or ${ chalk . bold (
105- 'yarn.lock'
106- ) } in your project folder.\n\n` +
112+ ) } !) and/or ${ chalk . bold ( 'yarn.lock' ) } in your project folder.\n` +
107113 ` ${ chalk . cyan ( '2.' ) } Delete ${ chalk . bold (
108114 'node_modules'
109- ) } in your project folder.\n\n ` +
115+ ) } in your project folder.\n` +
110116 ` ${ chalk . cyan ( '3.' ) } Remove "${ chalk . bold (
111117 dep
112118 ) } " from ${ chalk . bold ( 'dependencies' ) } and/or ${ chalk . bold (
113119 'devDependencies'
114120 ) } in the ${ chalk . bold (
115121 'package.json'
116- ) } file in your project folder.\n\n ` +
122+ ) } file in your project folder.\n` +
117123 ` ${ chalk . cyan ( '4.' ) } Run ${ chalk . bold (
118124 'npm install'
119125 ) } or ${ chalk . bold (
0 commit comments