From 2fe9a71b8296e80f4726011b442ffc10273d206f Mon Sep 17 00:00:00 2001 From: Mike Date: Mon, 2 Mar 2020 14:37:13 -0700 Subject: [PATCH] =?UTF-8?q?Improve=20package.json=20not=20found=20error?= =?UTF-8?q?=C2=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/@vue/cli/lib/util/getPkg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vue/cli/lib/util/getPkg.js b/packages/@vue/cli/lib/util/getPkg.js index 2a66980557..f014be8c7e 100644 --- a/packages/@vue/cli/lib/util/getPkg.js +++ b/packages/@vue/cli/lib/util/getPkg.js @@ -11,7 +11,7 @@ function getPackageJson (projectPath) { try { packageJson = fs.readFileSync(packagePath, 'utf-8') } catch (err) { - throw new Error(`${packagePath} not exist`) + throw new Error(`The package.json file at '${packagePath}' does not exist`) } try {