From e5e550571e0e2c4a05dd00626c6164b3376ed237 Mon Sep 17 00:00:00 2001
From: Alex Guerra <alex@heyimalex.com>
Date: Mon, 26 Nov 2018 17:22:19 -0600
Subject: [PATCH 1/2] Disable copy to clipboard in cra --info

Fixes an issue where npx create-react-app --info throws an exception on Windows. The exception was caused by envinfo's copy to clipboard functionality; envinfo is distributed pre-bundled, but the dependency it uses for copying to the clipboard makes use of a binary on Windows that can't be found once the bundle is made. Disabling copy to clipboard fixes the issue. Closes #5757.
---
 packages/create-react-app/createReactApp.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/packages/create-react-app/createReactApp.js b/packages/create-react-app/createReactApp.js
index 50bf9befd..7e7344500 100755
--- a/packages/create-react-app/createReactApp.js
+++ b/packages/create-react-app/createReactApp.js
@@ -135,13 +135,11 @@ if (program.info) {
         npmGlobalPackages: ['create-react-app'],
       },
       {
-        clipboard: true,
         duplicates: true,
         showNotFound: true,
       }
     )
-    .then(console.log)
-    .then(() => console.log(chalk.green('Copied To Clipboard!\n')));
+    .then(console.log);
 }
 
 if (typeof projectName === 'undefined') {
-- 
GitLab


From 45490d6b8562e7fce3f65fff182cb3244b3cab49 Mon Sep 17 00:00:00 2001
From: Alex Guerra <alex@heyimalex.com>
Date: Tue, 27 Nov 2018 01:57:08 -0600
Subject: [PATCH 2/2] Explicitly set clipboard to false

---
 packages/create-react-app/createReactApp.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/packages/create-react-app/createReactApp.js b/packages/create-react-app/createReactApp.js
index 7e7344500..f7e5dffd4 100755
--- a/packages/create-react-app/createReactApp.js
+++ b/packages/create-react-app/createReactApp.js
@@ -135,6 +135,7 @@ if (program.info) {
         npmGlobalPackages: ['create-react-app'],
       },
       {
+        clipboard: false,
         duplicates: true,
         showNotFound: true,
       }
-- 
GitLab