From 87fd62545ebb5dfba23e16b5cc455d4bfd7e202b Mon Sep 17 00:00:00 2001 From: Sujit Ale Magar <128675355+Sujitale07@users.noreply.github.com> Date: Sun, 4 Aug 2024 07:52:06 +0545 Subject: [PATCH] feat:improve-fnm-download-instructions (#6946) * feat:improve-fnm-download-instructions * Update apps/site/i18n/locales/en.json Co-authored-by: Michael Esteban Signed-off-by: Sujit Ale Magar <128675355+Sujitale07@users.noreply.github.com> --------- Signed-off-by: Sujit Ale Magar <128675355+Sujitale07@users.noreply.github.com> Co-authored-by: Michael Esteban --- apps/site/i18n/locales/en.json | 1 + apps/site/util/getNodeDownloadSnippet.ts | 3 +++ 2 files changed, 4 insertions(+) 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}