不同的纱线版本可以导致纱线安装来修改Yarn.lock文件的内容吗?

发布于 2025-02-07 13:32:07 字数 720 浏览 1 评论 0原文

我的问题是:当我在本地运行纱线安装时,它会修改我从github源中提取的yarn.lock文件。 package.json文件中没有任何更改。 我最好的猜测是,我在本地使用纱1.22.18,但是yarn.lock在github上的最新提交(我刚刚提取)使用1.22.19来生成。 不同的纱线版本是否引起此问题?

ps:以前,yarn.lock github源上的文件是由yarn 1.22.17生成的,即使我正在使用纱1.22.18。当我进行纱线安装时,我的本地yarn.lock文件中没有任何更改。

我对我的问题进行了一些研究,但找不到有关此问题的任何好的文章(为什么我的yarn.lock文件在添加yarn安装后在package.json.json?中安装时会更改。)。如果有人认为此问题是重复的,请提供一个链接,我将解决此问题。

非常感谢!

My question is: when I run yarn install locally, it modifies the yarn.lock file I pulled from a Github source. There is nothing changed in package.json file.
My best guess is that I am using yarn 1.22.18 locally, but the latest commit of yarn.lock on Github (which I just pulled) uses 1.22.19 to generate.
Could different yarn versions cause this issue?

ps: previously, yarn.lock file on Github source was generated by yarn 1.22.17, even though I am using yarn 1.22.18. when I do yarn install, there is nothing changed in my local yarn.lock file.

I did some research on my issue, but cannot find any good articles about this problem (Why is my yarn.lock file changing when running yarn install after incrementing version in package.json?). If someone thinks this issue is a duplicate, please kindly provide a link and I will close this issue.

Thanks so much in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文