Setting Up Nodejs + Yarn on WSL (Windows Subsystem for Linux)

Harshit Yadav
Apr 10, 2019

--

Launch Window WSL Terminal

Start Up Updating the packages list by typing :

$ sudo apt update

Install the nodejs using the apt package manager

$ sudo apt install nodejs

To verify the Installation execute the following command :

$ nodejs --version

To be able to download npm package, you need to install the npm, the Node.js pacakge manager .To do so type:

$ sudo apt install npm

To verify the npm Install check using the command :

$ npm --version

To Downlaod and Setup Yarn

$ sudo apt install yarn

To check the Installed version of Yarn:

$ yarn --version

--

--

Harshit Yadav

Software Developer | Azure Solution Architect Expert | Technical Writer | harshityadav.in