yarn

JavaScript and Node.js package manager alternative. More information: <https://yarnpkg.com>.

Install

All systems
curl cmd.cat/yarn.sh
Debian Debian
apt-get install cmdtest
Ubuntu
apt-get install cmdtest
Alpine
apk add yarn
Arch Arch Linux
pacman -S yarn
image/svg+xml Kali Linux
apt-get install cmdtest
Fedora
dnf install cmdtest
Windows (WSL2)
sudo apt-get update sudo apt-get install cmdtest
OS X
brew install yarn
Raspbian
apt-get install cmdtest
Docker
docker run cmd.cat/yarn yarn powered by Commando

JavaScript and Node.js package manager alternative. More information: <https://yarnpkg.com>.

  • Install a module globally:
    yarn global add module_name
  • Install all dependencies referenced in the `package.json` file (the `install` is optional):
    yarn install
  • Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):
    yarn add module_name@version
  • Uninstall a module and remove it from the `package.json` file:
    yarn remove module_name
  • Interactively create a `package.json` file:
    yarn init
  • Identify whether a module is a dependency and list other modules that depend upon it:
    yarn why module_name

© tl;dr; authors and contributors