Setting Fast Node Manager (fnm) for Windows

When getting started with Node development, I was frustrated by the incomplete or inaccurate blog posts about how to setup Node with fnm.

Here is how to get Fast Node Manager (fnm) working on your Windows machine.

Here is how to get Fast Node Manager (fnm) working on your Windows machine.

When getting started with Node development, I was frustrated by the incomplete or inaccurate blog posts about how to setup Node with fnm. 

Open Powershell

winget install Schniz.fnm

Open Powershell as Administrator

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Reopen Powershell

Make sure you have a Powershell profile to edit

if (!(Test-Path -Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force }

Open your profile to edit

notepad $profile

Add this line to your profile

Write-Host "Configure fnm - Fast Node Version Manager in Rust"
fnm env --use-on-cd | Out-String | Invoke-Expression

Reopen your shell and install Node 

fnm install --lts