Commit 81c0cd4b authored by Alex Guerra's avatar Alex Guerra Committed by Joe Haddad
Browse files

Disable copy to clipboard in cra --info (#5905)

* 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.

* Explicitly set clipboard to false
parent 49e258b4
2 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk
Showing with 2 additions and 3 deletions
+2 -3
......@@ -135,13 +135,12 @@ if (program.info) {
npmGlobalPackages: ['create-react-app'],
},
{
clipboard: true,
clipboard: false,
duplicates: true,
showNotFound: true,
}
)
.then(console.log)
.then(() => console.log(chalk.green('Copied To Clipboard!\n')));
.then(console.log);
}
if (typeof projectName === 'undefined') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment