When I use yarn command, it get the beta version from electron, not the latest stable. Is this a bug with this package, or electron? How to solve this?
@marceloavf
Looks like yarn made a change to how dependency ranges are installed. This isn't really a bug, but just a slightly unexpected behavior or opinion. Will be pushing a fix, but you can get back to a stable install with yarn remove electron && yarn add electron@latest --dev.
When using the carrot range, yarn will install the highest version within the range, ignoring any dist tags related to betas, RCs, etc.
Seems that this issue has solved itself. Might have been related to the removed beta versions that shipped with the Chrome security vulnerability.
Make sure to update yarn, version ^1.0.0 is now out.
Most helpful comment
@marceloavf
Looks like
yarnmade a change to how dependency ranges are installed. This isn't really a bug, but just a slightly unexpected behavior or opinion. Will be pushing a fix, but you can get back to a stable install withyarn remove electron && yarn add electron@latest --dev.When using the carrot range,
yarnwill install the highest version within the range, ignoring anydisttags related to betas, RCs, etc.Related: https://github.com/yarnpkg/yarn/issues/1690