Commit 56fed479 authored by Dan Abramov's avatar Dan Abramov
Browse files

Tweak preflight check message

parent bce2bfca
4 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file,!5480<!-- Thank you for sending the PR!
Showing with 13 additions and 7 deletions
+13 -7
...@@ -95,25 +95,31 @@ function verifyPackageTree() { ...@@ -95,25 +95,31 @@ function verifyPackageTree() {
` ${chalk.bold(chalk.red(maybeDep))} (version: ${chalk.bold( ` ${chalk.bold(chalk.red(maybeDep))} (version: ${chalk.bold(
chalk.red(depPackageJson.version) chalk.red(depPackageJson.version)
)}) \n\n` + )}) \n\n` +
`Manually installing incompatible versions is known to cause hard-to-debug issues.\n` + `Manually installing incompatible versions is known to cause hard-to-debug issues.\n\n` +
`To fix the dependency tree, try following the steps below in the exact order:\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( ` ${chalk.cyan('1.')} Delete ${chalk.bold(
'package-lock.json' 'package-lock.json'
)} (${chalk.underline('not')} ${chalk.bold( )} (${chalk.underline('not')} ${chalk.bold(
'package.json' 'package.json'
)}!) and/or ${chalk.bold( )}!) and/or ${chalk.bold('yarn.lock')} in your project folder.\n` +
'yarn.lock'
)} in your project folder.\n\n` +
` ${chalk.cyan('2.')} Delete ${chalk.bold( ` ${chalk.cyan('2.')} Delete ${chalk.bold(
'node_modules' 'node_modules'
)} in your project folder.\n\n` + )} in your project folder.\n` +
` ${chalk.cyan('3.')} Remove "${chalk.bold( ` ${chalk.cyan('3.')} Remove "${chalk.bold(
dep dep
)}" from ${chalk.bold('dependencies')} and/or ${chalk.bold( )}" from ${chalk.bold('dependencies')} and/or ${chalk.bold(
'devDependencies' 'devDependencies'
)} in the ${chalk.bold( )} in the ${chalk.bold(
'package.json' 'package.json'
)} file in your project folder.\n\n` + )} file in your project folder.\n` +
` ${chalk.cyan('4.')} Run ${chalk.bold( ` ${chalk.cyan('4.')} Run ${chalk.bold(
'npm install' 'npm install'
)} or ${chalk.bold( )} or ${chalk.bold(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment