How Do I Uninstall Yarn How Do I Uninstall Yarn node.js node.js

How Do I Uninstall Yarn


Depends on how you installed it:

brew: brew uninstall yarn

tarball: rm -rf "$HOME/.yarn"

npm: npm uninstall -g yarn

ubuntu: sudo apt-get remove yarn && sudo apt-get purge yarn

centos: yum remove yarn

windows: choco uninstall yarn (or go to control panel > add/remove programs and uninstall it from there)


Try this, it works well on macOS:

$ brew uninstall --force yarn$ npm uninstall -g yarn$ yarn -v

v0.24.5 (or your current version)

$ which yarn

/usr/local/bin/yarn

$ rm -rf /usr/local/bin/yarn$ rm -rf /usr/local/bin/yarnpkg$ which yarn

yarn not found

$ brew install yarn $ brew link yarn$ yarn -v

v1.17.3 (latest version)


Didn't see the answer that worked for me, so here it is: On my OSX system I found yarn at ~/.yarn/bin/yarn. rm -rf ~/.yarn took care of it.