-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--clipboard option fails on Windows #57
Comments
😭 Thank you so much for reporting and finding this issue! 2 questions:
|
|
Would you be willing to PR/test that version change? |
The old version of clipboardy has bad Unicode support, not sure if that's an issue for this particular dependency. The real fix would probably be to publish a non-webpacked version and include a dependency on clipboardy. Might not be appropriate for some of the ways this library is being distributed though. |
envinfo is most useful when used via npx - and webpack enables a much smaller footprint and shorter download time. In my benchmarks before publishing it, it reduced type from initial command to report by several seconds. An alternate solution might be to use npx to call clipboardy - especially since it's not always used, and only a problem on windows. |
Working on moving the dependency to npx to be installed correctly without being in the main envinfo bundle. |
clipboardy, the dependency used for clipboard support, bundles native binaries to write to the clipboard. Unfortunately, these are lost during the webpacking process this tool uses. This means that running envinfo --clipboard fails at runtime on Windows.
The text was updated successfully, but these errors were encountered: