WSL

Node.js on WSL

The apt-get version of node is incredibly old, and simplest way to install latest binary distributions:

curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs

Yarn Package Manager

curl -sL 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
sudo apt-get update && sudo apt-get install yarn
date 14. May 2019 | modified 28. May 2021
filename: Windows » WSL