Yarn 2 是否支持像 v1.x 这样的 --offline 模式?

Does Yarn 2 support --offline mode like v1.x?

我正在使用 Yarn 1.21,通过几个手动步骤,我能够使离线模式在完全离线的环境(公司网络)中工作。

Yarn 2 看起来 非常 令人兴奋,但在谷歌搜索后我找不到任何提及。

同时查看 Yarn 2 文档,我看不到任何关于离线模式的提及。

Yarn 2是否支持--offline模式?!?

我发现 Yarn 2 支持离线模式,称为 Yarn 缓存,感谢 arcanis,从下面的这个答案:

the offline mirror has been merged with the Yarn cache,
so any time you see the word "cache" you can think of it
as what was previously called the offline mirror

https://github.com/yarnpkg/yarn/issues/7872#issuecomment-582385100