Replies: 1 comment
-
Addressed in #6610 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
(For context: we have a huge repo with 1000s of deps, use pnp mode, and commit
.yarn/cache
to git).For some reason, some folks in my company, whenever having an issue, try
yarn cache clean
as a general troubleshooting option (perhaps they're used torm -rf node_modules
from old times of npm; also, they might be conflatingyarn cache clean
with some other commands).This creates more problems than it solves:
git diff
on.yarn/cache
yarn install
is not fixing it.script
s which no longer work etc. so a fresh install from scratch with zero disk cache does not work anymore..yarn/cache
first, and from there, try to fix the original problem they had.The bottom line is,
yarn cache clean
is never a solution to the problems folks have, and it actually makes things worse.Potential solution
yarn cache clean
(especially in pnp mode) should show a confirmation prompt? (or require--force
)Beta Was this translation helpful? Give feedback.
All reactions