When resolution-mode is set to time-based, dependencies will be resolved the following way:
Direct dependencies will be resolved to their lowest versions. So if there is foo@^1.1.0 in the dependencies, then 1.1.0 will be installed.
Subdependencies will be resolved from versions that were published before the last direct dependency was published.
This resolution mode works only with npm's full metadata. So it is slower in some scenarios. However, if you use Verdaccio v5.15.1 or newer, you may set the registry-supports-time-field setting to true, and it will be really fast.
使得 pnpm 在 resolution-mode=time-base 模式时,安装速度更快
verdaccio 在 5.15.1 版本中支持了 time 字段,使得 pnpm 在
time-based
模式下安装速度更快,相关 RFC https://pnpm.io/npmrc#resolution-mode