We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
本笔记是基于yarn resolution的使用
你为什么要这么做? 有些时候,项目会依赖一个不常更新的包,但这个包又依赖另一个需要立即升级的包。 这时候,如果这个(不常更新的)包的依赖列表里不包含需要升级的包的新版本,那就只能等待作者升级,没别的办法。 项目的子依赖(依赖的依赖)需要紧急安全更新,来不及等待直接依赖更新。 项目的直接依赖还可以正常工作但已经停止维护,这时子依赖需要更新。 同时,你清楚子依赖的更新不会影响现有系统,但是又不想通过 fork 的方式来升级直接依赖。 项目的直接依赖定义了过于宽泛的子依赖版本范围,恰巧这其中的某个版本有问题,这时你想要把子依赖限制在某些正常工作的版本范围里。
"resolutions": { "lodash": ">=4.17.12" },
yarn
yarn install
yarn audit
lodash
$ yarn audit | grep lodash
关于yarn audit 命令在yarn中文官网上没有进行翻译(2019/07/18),建议参考英文官网的介绍
The text was updated successfully, but these errors were encountered:
对于笔记中临时处理有问题的依赖版本,只是记述了yarn,下面总结其他包管理工具的处置方法:
Sorry, something went wrong.
fsevents低版本与node12不兼容的问题,修复方法为强制升级fsevents的版本 参见此issue nodejs/node#27389 (comment)
No branches or pull requests
以下摘自yarn中文官网
上面说的很详细,基本把各种情况都列出来了,下面用白话复述一遍
使用方法yarn中文官网也有介绍,但是还是要在下面简单的记录一下
yarn
或者yarn install
命令验证方法
yarn audit
命令,确认结果中没有出现lodash
$ yarn audit | grep lodash
关于yarn audit 命令在yarn中文官网上没有进行翻译(2019/07/18),建议参考英文官网的介绍
The text was updated successfully, but these errors were encountered: