From beed977d0a618038841ec023662c7e6b0a99509c Mon Sep 17 00:00:00 2001 From: Jarrod Davis Date: Sat, 3 Feb 2018 21:34:25 -0600 Subject: [PATCH] fix(inspect): correct usage of `resolve` Use `basedir` to specify the initial search path for resolving the CLI service, since `cwd` is not a valid option property. --- packages/@vue/cli/lib/inspect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vue/cli/lib/inspect.js b/packages/@vue/cli/lib/inspect.js index 886224b78c..f2e98c419a 100644 --- a/packages/@vue/cli/lib/inspect.js +++ b/packages/@vue/cli/lib/inspect.js @@ -7,7 +7,7 @@ module.exports = function inspect (paths, mode) { const cwd = process.cwd() let servicePath try { - servicePath = resolve.sync('@vue/cli-service', { cwd }) + servicePath = resolve.sync('@vue/cli-service', { basedir: cwd }) } catch (e) { const { error } = require('@vue/cli-shared-utils') error(`Failed to locate @vue/cli-service. Make sure you are in the right directory.`)