Skip to content

Commit

Permalink
fix: windows平台子进程执行命令报错
Browse files Browse the repository at this point in the history
  • Loading branch information
StreakingMan committed Mar 7, 2022
1 parent 2912424 commit 903812e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/batch-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const batchInstall = (deps, { dev }) => {
for (const dep of deps) {
console.log(`🚓 正在安装 ${dep} ...`);
try {
execSync(`yarn add ${dep} ${dev ? '--dev' : ''}`, { stdio: [2] });
execSync(`yarn add ${dep} ${dev ? '--dev' : ''}`);
} catch (e) {
console.error(`❌ ${dep} 安装失败:${e}`);
}
Expand Down

0 comments on commit 903812e

Please sign in to comment.