Post

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

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

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

Medium article image

Launch Window WSL Terminal

Start Up Updating the packages list by typing :

1
$ sudo apt update

Install the nodejs using the apt package manager

1
$ sudo apt install nodejs

To verify the Installation execute the following command :

1
$ nodejs --version

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

1
$ sudo apt install npm

To verify the npm Install check using the command :

1
$ npm --version

To Downlaod and Setup Yarn

1
$ sudo apt install yarn

To check the Installed version of Yarn:

1
$ yarn --version

Reference

This post is licensed under CC BY 4.0 by the author.