Skip to content

Commit 9ea681c

Browse files
authored
fix(gen): fix yarn check command
1 parent 9ca863d commit 9ea681c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/generators/app/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ export class Generator extends Base {
610610
if (process.platform === 'win32') {
611611
yarnCheckCommand = 'yarn --version >nul 2>&1';
612612
} else {
613-
yarnCheckCommand = 'type yarn &> /dev/null';
613+
yarnCheckCommand = 'type yarn >/dev/null 2>&1';
614614
}
615615
exec(yarnCheckCommand, (error, stdout, stderr) => {
616616
return this.spawnCommand((!error) ? 'yarn' : 'npm', ['install']);

0 commit comments

Comments
 (0)