Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
56fed479
Commit
56fed479
authored
6 years ago
by
Dan Abramov
Browse files
Options
Download
Email Patches
Plain Diff
Tweak preflight check message
parent
bce2bfca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/scripts/utils/verifyPackageTree.js
+13
-7
packages/react-scripts/scripts/utils/verifyPackageTree.js
with
13 additions
and
7 deletions
+13
-7
packages/react-scripts/scripts/utils/verifyPackageTree.js
+
13
-
7
View file @
56fed479
...
...
@@ -95,25 +95,31 @@ function verifyPackageTree() {
`
${
chalk
.
bold
(
chalk
.
red
(
maybeDep
))}
(version:
${
chalk
.
bold
(
chalk
.
red
(
depPackageJson
.
version
)
)}
) \n\n`
+
`Manually installing incompatible versions is known to cause hard-to-debug issues.\n`
+
`To fix the dependency tree, try following the steps below in the exact order:\n\n`
+
`Manually installing incompatible versions is known to cause hard-to-debug issues.\n\n`
+
chalk
.
red
(
`If prefer to ignore this check, add
${
chalk
.
bold
(
'
SKIP_PREFLIGHT_CHECK=true
'
)}
to an
${
chalk
.
bold
(
'
.env
'
)}
file in your project.\n`
+
`That will permanently disable this message but you might encounter other issues.\n\n`
)
+
`To
${
chalk
.
green
(
'
fix
'
)}
the dependency tree, try following the steps below in the exact order:\n\n`
+
`
${
chalk
.
cyan
(
'
1.
'
)}
Delete
${
chalk
.
bold
(
'
package-lock.json
'
)}
(
${
chalk
.
underline
(
'
not
'
)}
${
chalk
.
bold
(
'
package.json
'
)}
!) and/or
${
chalk
.
bold
(
'
yarn.lock
'
)}
in your project folder.\n\n`
+
)}
!) and/or
${
chalk
.
bold
(
'
yarn.lock
'
)}
in your project folder.\n`
+
`
${
chalk
.
cyan
(
'
2.
'
)}
Delete
${
chalk
.
bold
(
'
node_modules
'
)}
in your project folder.\n
\n
`
+
)}
in your project folder.\n`
+
`
${
chalk
.
cyan
(
'
3.
'
)}
Remove "
${
chalk
.
bold
(
dep
)}
" from
${
chalk
.
bold
(
'
dependencies
'
)}
and/or
${
chalk
.
bold
(
'
devDependencies
'
)}
in the
${
chalk
.
bold
(
'
package.json
'
)}
file in your project folder.\n
\n
`
+
)}
file in your project folder.\n`
+
`
${
chalk
.
cyan
(
'
4.
'
)}
Run
${
chalk
.
bold
(
'
npm install
'
)}
or
${
chalk
.
bold
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets