mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 01:54:48 +00:00
fix(cli): should disable yarn prod flag
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user