We’re careful to use Yarn everywhere to avoid a dependency on NPM, though package managers often distribute NPM along with Node.
You’ll need Node 6+ and Yarn 1.0+. This may change in the future; see CONTRIBUTING.md for the most up-to-date version requirements.
On macOS, Homebrew ships compatible versions as of this writing:
brew install node yarn
On Linux, it’s a bit more challenging. Debian systems can follow what we do in bootstrap-debian.sh:
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
echo "deb https://deb.nodesource.com/node_6.x xenial main" | sudo tee /etc/apt/sources.list.d/nodesource.list
curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
For other distributions, you’ll need to consult your package manager’s manual and/or the official Node/Yarn installation instructions.