yarn (devel/yarn) Updated: 4 months, 4 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.21 License: BSD GitHub
Maintainers jambonrose isomarcte
Categories devel
Homepage https://yarnpkg.com/
Platforms any
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)

57

Requested Installations (30 days)

40

Livecheck error

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

last updated: 1 day ago