Prerequisite: windows setup
Installing the following:
- WSL2
- Ubuntu distribution
- fnm
- nodejs v22.17.0
- pnpm
- react-router app example (TBD)
-
open powershell in administrator mode
-
review available Distros
wsl --list --online- install Ubuntu 22 Distro in the very specific way of referencing it
wsl --install Ubuntu-22.04
# <Distro> could have been anything else, should it be the default?- In case of multiple distros, and updating default wsl environment to specified Distro, update default!
# ensure default is this Distro
wsl --setdefault Ubuntu-22.04
# only if you plan on having more distros installed...- run the linux!
wsl -d Ubuntu-22.04
# alternatively...
wsl # will run default Distro- confirm the linux
cat /etc/os-release
# expect a good chunk of text referencing the OSIn Linux Distro, Install fnm and Node.js v22.17.0 w/ pnpm
- install fnm
sudo apt install curl unzip -y # may require password
curl -fsSL https://fnm.vercel.app/install | bash- activate fnm in environment
source ~/.bashrc
fnm # should be outputting potential subcommands- install Node by fnm
fnm install v22.17.0
fnm alias default v22.17.0
fnm use v22.17.0- confirm defaults for fnm and node
fnm list # should display v22.17.0 as (default)
node -v # should output "v22.17.0"- Install pnpm
corepack enable pnpm
pnpm -v # should output "v10.12.4"