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) {