From 9ea681c2f75daed813c8ea5682584d9a35a17ad4 Mon Sep 17 00:00:00 2001 From: Andrew Koroluk Date: Wed, 3 May 2017 11:00:53 -0400 Subject: [PATCH] fix(gen): fix yarn check command --- src/generators/app/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generators/app/index.js b/src/generators/app/index.js index 9c169d0ce..b110938dd 100644 --- a/src/generators/app/index.js +++ b/src/generators/app/index.js @@ -610,7 +610,7 @@ export class Generator extends Base { if (process.platform === 'win32') { yarnCheckCommand = 'yarn --version >nul 2>&1'; } else { - yarnCheckCommand = 'type yarn &> /dev/null'; + yarnCheckCommand = 'type yarn >/dev/null 2>&1'; } exec(yarnCheckCommand, (error, stdout, stderr) => { return this.spawnCommand((!error) ? 'yarn' : 'npm', ['install']);