fix(cli): should disable yarn prod flag

This commit is contained in:
陈嘉涵 2019-12-19 10:46:33 +08:00
parent a9bcd1f2b9
commit e1cd618ea4

View File

@ -66,10 +66,10 @@ async function installDependencies() {
try { try {
const manager = hasYarn() ? 'yarn' : 'npm'; const manager = hasYarn() ? 'yarn' : 'npm';
const installProcess = execa(manager, ['install']);
installProcess.stdout.pipe(process.stdout); await execa(manager, ['install', '--prod=false'], {
await installProcess; stdio: 'inherit'
});
stepper.success('Install Dependencies'); stepper.success('Install Dependencies');
} catch (err) { } catch (err) {