yarn cache

yarn cache ls

Yarn stores every package in a global cache in your user directory on the file system. yarn cache ls will print out every cached package.

yarn cache dir

Running yarn cache dir will print out the path where yarn’s global cache is currently stored.

yarn cache clean

Running this command will clear the local cache. It will be populated again the next time yarn or yarn install is run.

Change the cache path for yarn

Set cache-folder config value to configure the cache directory.

yarn config set cache-folder <path>

You can also specify the cache directory by flag --cache-folder:

yarn <command> --cache-folder <path>

© 2016–2017 Yarn Contributors
Licensed under the BSD License.