From f8fc720abb53287b304aa9e7d2b5aab468854235 Mon Sep 17 00:00:00 2001 From: bmuenzenmeyer Date: Fri, 30 Oct 2026 20:50:08 -0500 Subject: [PATCH 1/2] fix(download): add Windows support for fnm Use the WIN key for fnm compatibility and add a shell env setup step to the fnm snippet so fnm and node are usable without restarting the shell. Signed-off-by: bmuenzenmeyer --- apps/site/snippets/en/download/fnm.bash | 6 ++++++ apps/site/util/download/constants.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/site/snippets/en/download/fnm.bash b/apps/site/snippets/en/download/fnm.bash index 063ca3e6aec66..c0b12954fd4e9 100644 --- a/apps/site/snippets/en/download/fnm.bash +++ b/apps/site/snippets/en/download/fnm.bash @@ -4,5 +4,11 @@ ${props.os === 'WIN' ? 'curl -o- https://fnm.vercel.app/install | bash' } +# In lieu of restarting the shell +${props.os === 'WIN' ? + 'fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression' : + 'eval "$(fnm env)"' +} + # Download and install Node.js: fnm install ${props.release.major} diff --git a/apps/site/util/download/constants.json b/apps/site/util/download/constants.json index 13a42f929d367..012bb93b323f5 100644 --- a/apps/site/util/download/constants.json +++ b/apps/site/util/download/constants.json @@ -140,7 +140,7 @@ "icon": "FNM", "name": "fnm", "compatibility": { - "os": ["MAC", "LINUX"] + "os": ["MAC", "LINUX", "WIN"] }, "recommended": true, "url": "https://github.com/Schniz/fnm", From f410ff4f276538889504671bb62164835d4d05f2 Mon Sep 17 00:00:00 2001 From: bmuenzenmeyer Date: Fri, 30 Oct 2026 23:37:12 -0500 Subject: [PATCH 2/2] fix(download): add fnm to PATH on Linux and activate installed version Signed-off-by: bmuenzenmeyer --- apps/site/snippets/en/download/fnm.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/site/snippets/en/download/fnm.bash b/apps/site/snippets/en/download/fnm.bash index c0b12954fd4e9..ab27a1ad68cf0 100644 --- a/apps/site/snippets/en/download/fnm.bash +++ b/apps/site/snippets/en/download/fnm.bash @@ -7,8 +7,8 @@ ${props.os === 'WIN' ? # In lieu of restarting the shell ${props.os === 'WIN' ? 'fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression' : - 'eval "$(fnm env)"' + 'export PATH="$HOME/.local/share/fnm:$PATH"\neval "$(fnm env)"' } # Download and install Node.js: -fnm install ${props.release.major} +fnm install --use ${props.release.major}