From e1cd618ea40a854022e6aa1efe20dae9ad9c3023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Thu, 19 Dec 2019 10:46:33 +0800 Subject: [PATCH] fix(cli): should disable yarn prod flag --- packages/vant-cli/src/commands/build.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/vant-cli/src/commands/build.ts b/packages/vant-cli/src/commands/build.ts index 9f2daa3bd..5eb767059 100644 --- a/packages/vant-cli/src/commands/build.ts +++ b/packages/vant-cli/src/commands/build.ts @@ -66,10 +66,10 @@ async function installDependencies() { try { const manager = hasYarn() ? 'yarn' : 'npm'; - const installProcess = execa(manager, ['install']); - installProcess.stdout.pipe(process.stdout); - await installProcess; + await execa(manager, ['install', '--prod=false'], { + stdio: 'inherit' + }); stepper.success('Install Dependencies'); } catch (err) {