简体   繁体   English

纱线不更新本地依赖关系

[英]Yarn does not update local dependency

I have a local dependency in package.json of the form “pkg”: “file:../pkg”. 我在package.json中有一个本地依赖项,格式为“ pkg”:“ file:../ pkg”。

How can I convince yarn 1.3.2 to fetch the new content of the pkg to node_modules ? 我如何说服yarn 1.3.2将pkg的新内容获取到node_modules

You can upgrade the dependencies with yarn upgrade . 您可以使用yarn upgrade升级依赖项。 If it takes too much time, you can upgrade just certain packages yarn upgrade pkg in your case 如果花费太多时间,则可以只升级某些yarn upgrade pkg包,而要yarn upgrade pkg

删除node_modules文件夹,然后运行yarn install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM