mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 20:51:12 +08:00
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
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user