- Building Enterprise JavaScript Applications
- Daniel Li
- 61字
- 2021-07-23 16:31:09
Offline cache
When you install a package with yarn, it will save a copy of it at ~/.yarn-cache. So, the next time you need to install a package in one of your projects, yarn will check this cache and use the local copy if possible. This saves a round trip to the server each time and allows you to work offline.