I have tried to add lines
cache=/root/yarn as an absolute path, or
cache=./yarn or cache=yarnas a relative path
to the .npmrc file in the project. But when I run yarn the folder is not populated.
But if I do yarn config set cache-folder /root/yarn The folder is properly populated
One example that can be tried is the react repo:
https://github.com/facebook/react
I added the .npmrc file in the root folder and added the lines above
Please let me know if I'm doing something wrong here. Thank you
I have tried to add lines
cache=/root/yarn
as an absolute path, orcache=./yarn
orcache=yarn
as a relative path to the .npmrc file in the project. But when I runyarn
the folder is not populated.But if I do
yarn config set cache-folder /root/yarn
The folder is properly populatedI read it here that it should be respected: https://classic.yarnpkg.com/en/docs/cli/cache#toc-change-the-cache-path-for-yarn
One example that can be tried is the react repo: https://github.com/facebook/react I added the .npmrc file in the root folder and added the lines above
Please let me know if I'm doing something wrong here. Thank you
My environment information is below