@@ -95,25 +95,31 @@ function verifyPackageTree() {
95
95
` ${ chalk . bold ( chalk . red ( maybeDep ) ) } (version: ${ chalk . bold (
96
96
chalk . red ( depPackageJson . version )
97
97
) } ) \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` +
100
108
` ${ chalk . cyan ( '1.' ) } Delete ${ chalk . bold (
101
109
'package-lock.json'
102
110
) } (${ chalk . underline ( 'not' ) } ${ chalk . bold (
103
111
'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` +
107
113
` ${ chalk . cyan ( '2.' ) } Delete ${ chalk . bold (
108
114
'node_modules'
109
- ) } in your project folder.\n\n ` +
115
+ ) } in your project folder.\n` +
110
116
` ${ chalk . cyan ( '3.' ) } Remove "${ chalk . bold (
111
117
dep
112
118
) } " from ${ chalk . bold ( 'dependencies' ) } and/or ${ chalk . bold (
113
119
'devDependencies'
114
120
) } in the ${ chalk . bold (
115
121
'package.json'
116
- ) } file in your project folder.\n\n ` +
122
+ ) } file in your project folder.\n` +
117
123
` ${ chalk . cyan ( '4.' ) } Run ${ chalk . bold (
118
124
'npm install'
119
125
) } or ${ chalk . bold (
0 commit comments