Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
whoami
followed by Enter at the prompt (it should print your first name)sudo apt update
(if prompted for your password, enter it)sudo apt upgrade
(if prompted for your password, enter it)Git comes with Ubuntu, so there’s nothing to install. However, you should configure it using the following instructions.
git config --global user.name "Your Name"
with replacing “Your Name” with your real name.git config --global user.email your@email.com
with replacing “your@email.com” with your real email.Test if you have Chrome installed by typing “Chrome” in the search box in the bottom app bar that reads “Type here to search”. If you see a search result that reads “Chrome” with “App” under it, then you have it installed. Otherwise, follow these instructions to install Google Chrome.
Test if you have Node.js installed by opening an Ubuntu terminal and typing node --version
. If it reports “Command ‘node’ not found”, then you need to follow these directions.
sudo apt update
and press Entersudo apt install build-essential
and press Entercurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
and press Enter. ./.bashrc
and press Enternvm install --lts
and press Enternode --version
and seeing it print something that is not “Command not found”!For your projects you will often have to download a zip file and unzip it. It is easier to do this from the command line. So we need to install a linux unzip utility.
In the Ubuntu terminal type: sudo apt install unzip
and press Enter
Test if you have Mocha.js installed by opening an Ubuntu terminal and typing which mocha
. If it prints a path, then you’re good. Otherwise, if it prints nothing, install Mocha.js by typing npm install -g mocha
.
Ubuntu does not come with Python 3. Install it using the command sudo apt install python3
. Test it by typing python3 --version
and seeing it print a number.
As of the time of writing of this document, WSL has an issue renaming or deleting files if Visual Studio Code is open. So before doing any linux commands which manipulate files, make sure you close Visual Studio Code before running those commands in the Ubuntu terminal.