r/archlinux•
Greben

How do I uninstall yarn?

I can't remember how I installed it, but apparently I didn't install it with pacman, and also I didn't install it globally with npm. There is .yarn directory in my home directory, and there is this line in my .bashrc:

export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"

If anybody has any advice it would be much appreciated.

Posted Jun 22, 2020, 11:15 AM UTC

14
allisio•

Nuclear option: find -name '*yarn*' -delete

2
marcelsiegert•

PLEASE do not run this blindly. Run this without -delete first and check what would get deleted.

3
pluuth•

Besides find you could also try which yarn to find the yarn executable.

2
GrebenOP•

Wow, I didn't think of this. Thanks! :)

1