Skip to content

Latest commit

 

History

History
79 lines (64 loc) · 1.66 KB

File metadata and controls

79 lines (64 loc) · 1.66 KB

WSL Setup

Prerequisite: windows setup

Installing the following:

  • WSL2
  • Ubuntu distribution
  • fnm
  • nodejs v22.17.0
  • pnpm
  • react-router app example (TBD)

Install Ubuntu 22 in WSL

  1. open powershell in administrator mode

  2. review available Distros

wsl --list --online
  1. 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?
  1. 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...
  1. run the linux!
wsl -d Ubuntu-22.04
# alternatively...
wsl # will run default Distro
  1. confirm the linux
 cat /etc/os-release
# expect a good chunk of text referencing the OS

In Linux Distro, Install fnm and Node.js v22.17.0 w/ pnpm

  1. install fnm
sudo apt install curl unzip -y # may require password
curl -fsSL https://fnm.vercel.app/install | bash
  1. activate fnm in environment
source ~/.bashrc
fnm # should be outputting potential subcommands
  1. install Node by fnm
fnm install v22.17.0
fnm alias default v22.17.0
fnm use v22.17.0
  1. confirm defaults for fnm and node
fnm list # should display v22.17.0 as (default)
node -v # should output "v22.17.0"
  1. Install pnpm
corepack enable pnpm
pnpm -v # should output "v10.12.4"