Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

yarn cache directory

### 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.
Source by classic.yarnpkg.com #
 
PREVIOUS NEXT
Tagged: #yarn #cache #directory
ADD COMMENT
Topic
Name
2+8 =