diff --git a/apps/site/i18n/locales/en.json b/apps/site/i18n/locales/en.json index b2f9ef45f86e2..8b20d7964f6ef 100644 --- a/apps/site/i18n/locales/en.json +++ b/apps/site/i18n/locales/en.json @@ -290,6 +290,7 @@ "platform": "Platform" }, "codeBox": { + "fnmEnvSetup": "configure fnm environment", "systemManagerWarning": "is not a Node.js package manager. Please ensure you already have {packageManager} installed.", "communityWarning": "Package managers and their installation scripts are not maintained by the Node.js project.", "communityWarningReport": "If you encounter issues, please reach out to the package manager's maintainers.", diff --git a/apps/site/util/getNodeDownloadSnippet.ts b/apps/site/util/getNodeDownloadSnippet.ts index 43083610ecec6..a509ebcc558aa 100644 --- a/apps/site/util/getNodeDownloadSnippet.ts +++ b/apps/site/util/getNodeDownloadSnippet.ts @@ -88,6 +88,9 @@ export const getNodeDownloadSnippet = ( # ${t('layouts.download.codeBox.installsFnm')} winget install Schniz.fnm + # ${t('layouts.download.codeBox.fnmEnvSetup')} + fnm env --use-on-cd | Out-String | Invoke-Expression + # ${t('layouts.download.codeBox.downloadAndInstallNodejs')} fnm use --install-if-missing ${release.major}