admin管理员组文章数量:1402059
I would like to upgrade eslint
package to latest version.
yarn upgrade eslint --latest
do nothing.
How can I update to latest version via yarn?
I would like to upgrade eslint
package to latest version.
yarn upgrade eslint --latest
do nothing.
How can I update to latest version via yarn?
Share Improve this question edited Sep 15, 2021 at 12:33 Machavity♦ 31.7k27 gold badges95 silver badges105 bronze badges asked Sep 17, 2020 at 6:33 nirebam368nirebam368 3255 silver badges12 bronze badges 1-
I do mostly
yarn add eslint@latest
– Felix Kling Commented Sep 17, 2020 at 7:50
1 Answer
Reset to default 5Recipe of my recent technique.
Some time ago mand below started failing to work
yarn upgrade somePackage -- latest
It's started to has side effects like updating other packages as babel, typescript etc. I don't see any ments about this behavior in official documentation. Going to codebase of yarn is a bit overhead in order to solve so "basic" task
Currently in order to update single package i use
yarn add somePackage
In order to update to latest i use
yarn add somePackage@latest
So, in your case i remend you to try (note that it goes to dev dependencies)
yarn add eslint@latest -D
Please, let me know if it works or not )
本文标签: javascriptHow to upgrade package to latest version using yarnStack Overflow
版权声明:本文标题:javascript - How to upgrade package to latest version using yarn? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744345584a2601737.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论