From a91c9585ece4f89d8f49f8a75f7652571d63ed9c Mon Sep 17 00:00:00 2001 From: Anindya Dey <30517208+andys-github@users.noreply.github.com> Date: Wed, 7 Jul 2021 16:42:58 +0530 Subject: [PATCH] fix error message during create-next-app (#26980) Fixes [issue #19588](https://github.com/vercel/next.js/issues/19588) Here's a screenshot of the error message: ![image](https://user-images.githubusercontent.com/30517208/124733436-d1babd80-df31-11eb-96e4-513505ba07a0.png) --- packages/create-next-app/create-app.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/create-next-app/create-app.ts b/packages/create-next-app/create-app.ts index c309ea5691458..3a40c37db2fc2 100644 --- a/packages/create-next-app/create-app.ts +++ b/packages/create-next-app/create-app.ts @@ -89,7 +89,11 @@ export async function createApp({ console.error( `Could not locate an example named ${chalk.red( `"${example}"` - )}. Please check your spelling and try again.` + )}. It could be due to the following:\n`, + `1. Your spelling of example ${chalk.red( + `"${example}"` + )} might be incorrect.\n`, + `2. You might not be connected to the internet.` ) process.exit(1) }