How to set your own yarn cache path?

I just installed yarn and I am trying to switch from npm.

I tried to set my caching path this way, but this failed:

yarn --cache-folder /usr/local/Caches/yarn yarn global --cache-folder /usr/local/Caches/yarn yarn global cache --cache-folder /usr/local/Caches/yarn yarn cache --cache-folder /usr/local/Caches/yarn yarn config set --cache-folder /usr/local/Caches/yarn 

Here is the documentation for yarn configuration .

+5
source share
1 answer

Actual team:

 yarn config set cache-folder /usr/local/Caches/yarn 

(Note: no previous -- )

The docs for yarn cache show various ways in which this can be set.

+2
source

Source: https://habr.com/ru/post/1259156/


All Articles