### 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>
## You can also specify the cache directory by environment variable YARN_CACHE_FOLDER:
YARN_CACHE_FOLDER=<path> yarn <command>
##Yarn will also respect cache=<path> in .npmrc for compatibility with npm.
YARN_CACHE_FOLDER=<path> yarn <command>