I assume when I install npm package say react for the first time with
yarn add react
this will save react file in local cache. I found .yarn-cache
to contain many files. I assume it is yarn local cache folder so that when I install react again in the future, it will be installed from local cache, no??
If I need to install react again in the future, should I simply write this:
yarn add react
or this:
yarn add react --prefer-offline