- node
# set node 12 sources
sudo apt update -y
sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
# install node
sudo apt install nodejs npm -y
# install c compiler, required for sass, node-gyp, etc
sudo apt -y install gcc g++ make
- using yarn
sudo npm install yarn -g
- Open Settings
Languages and framework > Nodejs And NPM
- Node itepreter with your WSL
- Package manager
/usr/local/lib/node_modules/yarn
/usr/lib/node_modules/npm