diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -162,10 +162,15 @@ function handleArguments(env) {
       ansi.red(missingGulpMessage),
       ansi.magenta(tildify(env.cwd))
     );
+    var hasYarn = fs.existsSync(path.join(env.cwd, 'yarn.lock'));
     /* istanbul ignore next */
     var installCommand =
       missingNodeModules
-        ? 'npm install'
+        ? hasYarn
+          ? 'yarn install'
+          : 'npm install'
+        : hasYarn
+          ? 'yarn add gulp'
         : 'npm install gulp';
     log.error(ansi.red('Try running: ' + installCommand));
     exit(1);
Fix: Avoid recommending npm if yarn should be used (#<I>)