From 7cb2e4a363ecfa54af369f87c78954a077a32fcd Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 14 Mar 2024 18:24:51 +0100 Subject: [PATCH] Better wsl instructions for recent versions of go & node --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index d75861a..e7b2dfe 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,21 @@ You should consult the [WSL documentation](https://docs.microsoft.com/en-us/wind wsl --install -d Ubuntu-22.04 # To get a somewhat recent version of Go ``` +After this, you can open a (wsl) terminal and run the commands: + +```bash +sudo apt update && sudo apt upgrade +sudo apt install -y make podman + +sudo add-apt-repository ppa:longsleep/golang-backports +sudo apt update +sudo apt install golang-go + +# For a recent version of node: +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash +nvm install node +``` + If you get any errors related to virtualization, you will need to enable virtualization in the BIOS. This is a common issue, and you can find a guide for your specific motherboard online. This is a one-time operation and will not affect your windows installation. This setting is usually called "VT-x" or "AMD-V" and is usually found in the CPU settings. If you can't find it, shoot me a message and I'll find it for you. If you're **still dead set** on using a vanilla Windows environment, you will need the following: