Yarn: Add `yarn cache dir` to output cache directory

Created on 11 Oct 2016  路  8Comments  路  Source: yarnpkg/yarn

When reading the blog post it stated that during the fetching phase/step, yarn looks inside the global cache directory. Which folder is this exactly?

Screen Shot 2016-10-11 at 18.19.36.png

Most helpful comment

~/.yarn-cache

All 8 comments

~/.yarn-cache

npm offers a number of npm cache commands - could yarn offer the same?

It should :)

yarn cache ls
yarn cache clean

ideally yarn cache dir or something would print out the path (npm doesn't have this, sadly)

Created #880 to fix this, pending approval.

Not related, but is there a way to change the yarn cache dir?

npm also expose the cache dir the script environment as process.env.npm_config_cache. Is this covered also?

Was this page helpful?
0 / 5 - 0 ratings