1. Installing your editor

Firstly, go and install VSCode for windows .

2. Installing git

Windows is a very different environment to use the terminal on than Linux based systems (which evolved from UNIX , as opposed to windows which evolved from DOS ). Unix based systems are more commonplace in research and industry, so instead of using the windows terminals we encourage you to use the linux terminals inside of windows. To set this up, we'll be creating a Linux system inside Windows using a tool called Windows Subsystem for Linux (WSL) .

  1. Open up Powershell as an administrator, then run the command wsl --install . You might need to wait a few minutes for it to complete.
  2. If you get an error saying that virtualisation is disabled, you might need to change some settings in your BIOS. The specific steps you need to follow depend on your computer, but here are https://learn.microsoft.com/en-us/windows/wsl/inst... ">some generic instructions that may help.
  3. Once WSL is installed, you'll need to restart your computer. It'll probably do a Windows Update since we added a few new features to Windows. When you log back in, the second stage of the installation should begin automatically. If a terminal doesn't open within a minute or so, you should launch the newly-installed Ubuntu app from your start menu.
  4. Wait for the installation to finish. For some people, this takes 30 seconds, but for others it can take up to half an hour. Make sure you don't stop the process, or you might need to https://superuser.com/questions/1619233/completely... ">delete and reinstall WSL.
  5. Once it's finished installing, you'll be prompted to Enter a new UNIX username . This name should be entirely lowercase with no whitespace. Just use your first name.
  6. You'll then be asked to create a password. When you type this in, it won't be shown on-screen for security reasons, but it is reading your input. Make sure you choose a password you remember, since it can be a challenge to reset it.
  7. Confirm your password and you'll be dropped into a new Linux terminal session (you can check by running the uname command). The first thing you should do is update your system by running <code>sudo apt update sudo apt upgrade. If possible, you should memorise and run this command every few weeks to make sure your Linux system stays up-to-date.</li><li>The next thing we need to do is link WSL to VS Code. Open VS Code from the Windows start menu, then go to the extensions panel ( <em>4 boxes </em>icon on the left-hand side).</li><li>Search for and install the WSL extension. It tells VS Code how to communicate with the Windows Subsystem for Linux, which allows you to use VS Code on Windows with the back-end running on Linux.</li><li>Once the extension has installed, you should see a “two arrows” button in the bottom-left corner of your VS Code window. Click it and choose to <code>Connect to WSL. Wait for it to download and install the backend.
  8. When the VS Code server is installed to WSL, open a terminal by pressing Ctrl + ` (control back-tick). You should see that it connects to WSL's terminal automatically.</li><li>Finally, make sure Git is installed by running <strong>git --version </strong>in your terminal. If you see something like <strong>git version 2.40.1 </strong>, it is installed correctly. If you get a <strong>git: command </strong>not found error, you should install Git by running <code>sudo apt install git . Congratulations, you've successfully set up WSL and git!

3. Installing NodeJS

  1. Now that we've done the heavy lifting in step (2), we will go install NodeJS. The most reliable strategy is to use a tool called NVM
    1. Copy the command listed in the installation instructions and paste it into a WSL terminal.
    2. After executing the installation command, close and reopen your terminal.
    3. Run nvm install 20 , which will download and install the correct version of NodeJS. After it completes, run the <code> node --version command to check if it installed correctly. You should see something like "v20.12.2" as the output.

Resource created Tuesday 13 August 2024, 01:02:02 PM, last modified Tuesday 27 August 2024, 11:00:42 AM.


Back to top

CPTG1393/DPST1093 24C3 (Software Engineering Fundamentals) is powered by WebCMS3
CRICOS Provider No. 00098G