admin管理员组

文章数量:1415139

I don't know why my yarn is appearing all these problems. I could not uninstall it. Every time I uninstall it and reinstall , it always kind of taking what I deleted previously .How can I avoid all these errors and get a workable yarn?

I don't know why my yarn is appearing all these problems. I could not uninstall it. Every time I uninstall it and reinstall , it always kind of taking what I deleted previously .How can I avoid all these errors and get a workable yarn?

Share Improve this question asked Dec 23, 2021 at 9:16 CopperClericCopperCleric 832 silver badges8 bronze badges 4
  • What mand do you run when you get these errors? Looks like you didn't install your dependencies... – Jordi Nebot Commented Dec 23, 2021 at 9:18
  • Did you try npm uninstall -g yarn and then removing any existing yarn folders? -> on windows: Program Files (x86)\Yarn – iLuvLogix Commented Dec 23, 2021 at 9:19
  • Jordi I run just yarn. When I first use yarn, it did e with a dependencies. After that,I accidentally deleted part of the files and it bees like this. – CopperCleric Commented Dec 23, 2021 at 9:23
  • iLuvLogix yeah bro I tried that.However, when I try to reinstall yarn , it is just getting back what I have deleted earlier on. – CopperCleric Commented Dec 23, 2021 at 9:23
Add a ment  | 

1 Answer 1

Reset to default 4

You can simply run

npm uninstall -g yarn to uninstall the yarn from your dependencies

and then run

npm cache clean --force

to clean the cache and then try

本文标签: javascripthow can I delete yarn completelyStack Overflow