website icon indicating copy to clipboard operation
website copied to clipboard

uninstalling yarn

Open dantejauregui opened this issue 8 years ago • 9 comments

Hello guys!

if I install through this way: "curl -o- -L https://yarnpkg.com/install.sh | bash"

how can i uninstall correctly?? please :D

dantejauregui avatar May 27 '17 03:05 dantejauregui

All it does is extracts the tarball to ~/.yarn so you can simply delete that directory. Maybe in the future we could have an uninstall script.

Daniel15 avatar May 27 '17 04:05 Daniel15

@Daniel15 Surely the install script modified profiles, etc.?

Ideally there would be both an uninstall script, and manual removal instructions on the website. Currently I'm attempting to understand the install script line-by-line.

jaydenseric avatar May 31 '17 03:05 jaydenseric

Oh yeah, it also adds ~/.yarn/bin to the PATH. Feel free to submit a pull request adding an uninstallation script if you like.

Daniel15 avatar Jun 05 '17 06:06 Daniel15

Spent so much time looking for where the install script added the PATH set and never found it so I have to keep the .yarn/bin folder now...

AlexKvazos avatar Oct 02 '17 05:10 AlexKvazos

@AlexKvazos For me it was in ~/.zshrc, check the respective file for your shell.

RKushnir avatar Oct 05 '17 15:10 RKushnir

Why is this issue closed?

metareven avatar Dec 05 '17 08:12 metareven

We should be able to have an uninstall script which also detects the profile and deletes it

https://github.com/yarnpkg/website/blob/67843c54fcf5625284081d35f3437523bb4da5fd/install.sh#L115-L155

Haroenv avatar Dec 05 '17 09:12 Haroenv

Precisely. At this point I am trying to clean everything I have from Yarn to install it again. Because I'm having "network problems". I want to "zero" and start from scratch. To be sure.

I think I installed it on my Mac Via Sh. I've tried all ways to uninstall and nothing. I have to find out.

MichelDiz avatar Apr 07 '18 20:04 MichelDiz

+1 I pity those who wait 6 years to have a functionality that should be present from the design of any software :'-(

jle-pass avatar Feb 26 '24 15:02 jle-pass