Better wsl instructions for recent versions of go & node

This commit is contained in:
Imbus 2024-03-14 18:24:51 +01:00
parent a291972f82
commit 7cb2e4a363

View file

@ -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 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 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: If you're **still dead set** on using a vanilla Windows environment, you will need the following: