不同的纱线版本可以导致纱线安装来修改Yarn.lock文件的内容吗?
我的问题是:当我在本地运行纱线安装
时,它会修改我从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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论