yarn (devel/yarn) Updated: 2 months, 2 weeks 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:

~/.yarn
~/.yarnrc
~/.cache/yarn
~/.config/yarn

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
export PATH=$PREFIX:$PATH


Port Health:

Loading Port Health

Installations (30 days)

45

Requested Installations (30 days)

29