yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Running yarn cache clean freezes with high CPU

Open iq-dot opened this issue 7 years ago • 17 comments

Do you want to request a feature or report a bug? Bug report

What is the current behavior?

When I run yarn cache clean, it causes a high cpu node process and does not exit even after 30mins. I have upgraded to the latest version and the same issue. I have now manually deleted the cache folder and it still the same issue. I have to kill the process and can not cmd/ctrl+c out of it.

What is the expected behavior?

Not to freeze.

Please mention your node.js, yarn and operating system version.

Node 8.12 Yarn 1.13 Mac OSX Mojave

iq-dot avatar Mar 05 '19 19:03 iq-dot

Experiencing this same behaviour, did you find a solution?

mackenziemance avatar Apr 09 '19 20:04 mackenziemance

I did not, I simply deleted the folder manually

On Tue, 9 Apr 2019, 21:37 Mackenzie Mance, [email protected] wrote:

Experiencing this same behaviour, did you find a solution?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yarnpkg/yarn/issues/7082#issuecomment-481425523, or mute the thread https://github.com/notifications/unsubscribe-auth/ADR4HDr4H0gnL8j8UqA88p7Wclyf3uJmks5vfPoAgaJpZM4bfTp4 .

iq-dot avatar Apr 09 '19 20:04 iq-dot

Same issue in 2022

Drew-Daniels avatar Sep 20 '22 15:09 Drew-Daniels

Same issue in 2022

2023

ehanoc avatar Feb 10 '23 11:02 ehanoc

same on mac os ventura m2

rokumatsumoto avatar Mar 01 '23 10:03 rokumatsumoto

same on windows, now it is 2023

MattinaYang avatar Apr 03 '23 10:04 MattinaYang

we really need a fix...

RomainSF avatar May 13 '23 01:05 RomainSF

mac M1 Ventura 13

~ % yarn cache clean yarn cache v1.22.19 success Cleared cache. ✨ Done in 293.69s.

God...

onmotion avatar May 20 '23 16:05 onmotion

I can't wait to write here 2024.... 🥳

simoncarbajal avatar Dec 04 '23 07:12 simoncarbajal

yarn cache v1.22.19 success Cleared cache. Done in 1585.80s.

pedro-valentim avatar Jan 30 '24 20:01 pedro-valentim

Still taking a stupid amount of time! JUNE 2024

fmPeretti avatar Jun 13 '24 20:06 fmPeretti

yarn v1.22.21 - still taking an insane amount of time.

Apple M3 Pro

Done in 413.73s.

timmyjose avatar Jul 04 '24 06:07 timmyjose

yarn cache v1.22.22 success Cleared cache. ✨ Done in 338.28s.

Painful to watch in M1 Pro

catluong101digital avatar Jul 09 '24 03:07 catluong101digital