yarn (devel/yarn) Updated: 1 year, 4 months ago Add to my watchlist

JavaScript dependency manager

Created by Facebook to replace NPM, yarn boasts about its speed, security, and reliability. Most notably, yarn dependencies are installed deterministically, whereas NPM's dependencies are not.

Version: 1.22.19 License: BSD GitHub
Maintainers jambonrose isomarcte
Categories devel
Homepage https://yarnpkg.com/
Platforms darwin
Variants -

"yarn" depends on

run (1)
build (1)

Ports that depend on "yarn"

Port notes

yarn stores data in:


Should you choose to install packages globally with yarn (yarn global add), these files will not be removed if you deactivate or uninstall yarn. By default, these packages will be installed in ~/.config/yarn/global, and soft-linked to ${prefix}/bin. To uninstall them all:

$ ls -1 $HOME/.config/yarn/global/node_modules/ | xargs sudo yarn global remove

You may then remove the directories listed above and uninstall yarn.

yarn is meant to replace NPM, and may cause conflicts if you use both.

You may override the default global installation directory by setting the PREFIX environment variable, e.g.

mkdir -p $HOME/.config/yarn/bin # Or wherever you want
export PREFIX=$HOME/.config/yarn/bin

Port Health:

Loading Port Health

Installations (30 days)


Requested Installations (30 days)


Livecheck error

Error: cannot check if yarn was updated (regex didn't match)

last updated: an hour ago