From d2c457bf50708472e1f78eec48d207c7896b382f Mon Sep 17 00:00:00 2001 From: itsYaraso Date: Tue, 26 Nov 2024 04:02:30 +0200 Subject: [PATCH 1/4] docs: Removed and redirected how-to-install-nodejs to downloads page (#7184) --- apps/site/navigation.json | 4 ---- .../getting-started/how-to-install-nodejs.md | 17 ----------------- apps/site/redirects.json | 4 ++++ 3 files changed, 4 insertions(+), 21 deletions(-) delete mode 100644 apps/site/pages/en/learn/getting-started/how-to-install-nodejs.md diff --git a/apps/site/navigation.json b/apps/site/navigation.json index 6168c078438d5..b6d45b9f116b9 100644 --- a/apps/site/navigation.json +++ b/apps/site/navigation.json @@ -139,10 +139,6 @@ "link": "/learn/getting-started/introduction-to-nodejs", "label": "components.navigation.learn.gettingStarted.links.introductionToNodejs" }, - "howToInstallNodejs": { - "link": "/learn/getting-started/how-to-install-nodejs", - "label": "components.navigation.learn.gettingStarted.links.howToInstallNodejs" - }, "howMuchJavascriptDoYouNeedToKnowToUseNodejs": { "link": "/learn/getting-started/how-much-javascript-do-you-need-to-know-to-use-nodejs", "label": "components.navigation.learn.gettingStarted.links.howMuchJavascriptDoYouNeedToKnowToUseNodejs" diff --git a/apps/site/pages/en/learn/getting-started/how-to-install-nodejs.md b/apps/site/pages/en/learn/getting-started/how-to-install-nodejs.md deleted file mode 100644 index 9e12a36cd94f0..0000000000000 --- a/apps/site/pages/en/learn/getting-started/how-to-install-nodejs.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: How to install Node.js -layout: learn -authors: flaviocopes, ZYSzys, ollelauribostrom, MylesBorins, fhemberger, LaRuaNa, ahmadawais, benhalverson, ovflowd ---- - -# How to install Node.js - -Node.js can be installed in different ways. This post highlights the most common and convenient ones. Official packages for all the major platforms are available at [https://nodejs.org/download/](/download). - -One very convenient way to install Node.js is through a package manager. In this case, every operating system has its own. Other package managers for macOS, Linux, and Windows are listed in [https://nodejs.org/download/package-manager/](/download/package-manager/). - -`nvm` is a popular way to run Node.js. It allows you to easily switch the Node.js version, and install new versions to try and easily rollback if something breaks. It is also very useful to test your code with old Node.js versions. - -> See [https://github.com/nvm-sh/nvm](https://github.com/nvm-sh/nvm) for more information about this option. - -In any case, when Node.js is installed you'll have access to the `node` executable program in the command line. diff --git a/apps/site/redirects.json b/apps/site/redirects.json index 737a924e747a1..6055c80040fd4 100644 --- a/apps/site/redirects.json +++ b/apps/site/redirects.json @@ -295,6 +295,10 @@ { "source": "/:locale/learn/getting-started/nodejs-with-typescript", "destination": "/:locale/learn/typescript/introduction" + }, + { + "source": "/:locale/learn/getting-started/how-to-install-nodejs", + "destination": "/en/download/package-manager" } ], "internal": [] From 176ed3d98d7eeedef77b273309f1b179c57b030f Mon Sep 17 00:00:00 2001 From: itsYaraso Date: Tue, 26 Nov 2024 11:35:01 +0200 Subject: [PATCH 2/4] docs: Removed i18n keys for issue (#7283) --- packages/i18n/locales/en.json | 1 - packages/i18n/locales/fr.json | 1 - packages/i18n/locales/id.json | 1 - packages/i18n/locales/pt.json | 1 - packages/i18n/locales/tr.json | 1 - packages/i18n/locales/uk.json | 1 - packages/i18n/locales/zh-cn.json | 1 - packages/i18n/locales/zh-tw.json | 1 - 8 files changed, 8 deletions(-) diff --git a/packages/i18n/locales/en.json b/packages/i18n/locales/en.json index 025560058e919..3ac346d6f3e94 100644 --- a/packages/i18n/locales/en.json +++ b/packages/i18n/locales/en.json @@ -29,7 +29,6 @@ "links": { "gettingStarted": "Getting Started", "introductionToNodejs": "Introduction to Node.js", - "howToInstallNodejs": "How to install Node.js", "howMuchJavascriptDoYouNeedToKnowToUseNodejs": "How much JavaScript do you need to know to use Node.js?", "differencesBetweenNodejsAndTheBrowser": "Differences between Node.js and the Browser", "theV8JavascriptEngine": "The V8 JavaScript Engine", diff --git a/packages/i18n/locales/fr.json b/packages/i18n/locales/fr.json index 0c92090a25825..3cf587f085861 100644 --- a/packages/i18n/locales/fr.json +++ b/packages/i18n/locales/fr.json @@ -28,7 +28,6 @@ "links": { "gettingStarted": "Bien démarrer", "introductionToNodejs": "Introduction à Node.js", - "howToInstallNodejs": "Comment installer Node.js", "howMuchJavascriptDoYouNeedToKnowToUseNodejs": "À quel point avez-vous besoin de connaître JavaScript pour savoir utiliser Node.js ?", "differencesBetweenNodejsAndTheBrowser": "Différences entre Node.js et le navigateur", "theV8JavascriptEngine": "Le moteur JavaScript V8", diff --git a/packages/i18n/locales/id.json b/packages/i18n/locales/id.json index b2ef1d59ef7a2..29c62f512df4a 100644 --- a/packages/i18n/locales/id.json +++ b/packages/i18n/locales/id.json @@ -28,7 +28,6 @@ "links": { "gettingStarted": "Memulai", "introductionToNodejs": "Pengantar Node.js", - "howToInstallNodejs": "Instruksi Pemasangan Node.js", "howMuchJavascriptDoYouNeedToKnowToUseNodejs": "Seberapa banyak JavaScript yang anda perlu tahu untuk menggunakan Node.js?", "differencesBetweenNodejsAndTheBrowser": "Perbedaan Node.js dengan Browser", "theV8JavascriptEngine": "V8 JavaScript Engine", diff --git a/packages/i18n/locales/pt.json b/packages/i18n/locales/pt.json index 566eb15033b29..f1cee6d50be9a 100644 --- a/packages/i18n/locales/pt.json +++ b/packages/i18n/locales/pt.json @@ -28,7 +28,6 @@ "links": { "gettingStarted": "Começar", "introductionToNodejs": "Introdução ao Node.js", - "howToInstallNodejs": "Como instalar o Node.js", "howMuchJavascriptDoYouNeedToKnowToUseNodejs": "Quanto JavaScript precisas de saber para usar o Node.js?", "differencesBetweenNodejsAndTheBrowser": "Diferenças entre o Node.js e o Navegador", "theV8JavascriptEngine": "O Motor de JavaScript V8", diff --git a/packages/i18n/locales/tr.json b/packages/i18n/locales/tr.json index 43d445e990a23..41d9c8ff64e9f 100644 --- a/packages/i18n/locales/tr.json +++ b/packages/i18n/locales/tr.json @@ -28,7 +28,6 @@ "links": { "gettingStarted": "Başlarken", "introductionToNodejs": "Node.js'e Giriş", - "howToInstallNodejs": "Node.js nasıl kurulur", "howMuchJavascriptDoYouNeedToKnowToUseNodejs": "Node.js kullanabilmek için ne kadar JavaScript bilmelisiniz?", "differencesBetweenNodejsAndTheBrowser": "Node.js ile Tarayıcı Arasındaki Farklar", "theV8JavascriptEngine": "V8 JavaScript Motoru", diff --git a/packages/i18n/locales/uk.json b/packages/i18n/locales/uk.json index 14718639533fa..c577d925e51eb 100644 --- a/packages/i18n/locales/uk.json +++ b/packages/i18n/locales/uk.json @@ -28,7 +28,6 @@ "links": { "gettingStarted": "Початок роботи", "introductionToNodejs": "Вступ до Node.js", - "howToInstallNodejs": "Як установити Node.js", "howMuchJavascriptDoYouNeedToKnowToUseNodejs": "Як добре треба знати JavaScript, щоб використовувати Node.js?", "differencesBetweenNodejsAndTheBrowser": "Різниця між Node.js і браузером", "theV8JavascriptEngine": "Рушій JavaScript V8", diff --git a/packages/i18n/locales/zh-cn.json b/packages/i18n/locales/zh-cn.json index 15133a7809814..a2d6a2e890ddf 100644 --- a/packages/i18n/locales/zh-cn.json +++ b/packages/i18n/locales/zh-cn.json @@ -28,7 +28,6 @@ "links": { "gettingStarted": "快速上手", "introductionToNodejs": "Node.js 介绍", - "howToInstallNodejs": "如何安装 Node.js", "howMuchJavascriptDoYouNeedToKnowToUseNodejs": "使用Node.js需要了解多少JavaScript?", "differencesBetweenNodejsAndTheBrowser": "Node.js 与浏览器的区别", "theV8JavascriptEngine": "JavaScript V8 引擎", diff --git a/packages/i18n/locales/zh-tw.json b/packages/i18n/locales/zh-tw.json index 4d26d44eef683..1be331a1ad973 100644 --- a/packages/i18n/locales/zh-tw.json +++ b/packages/i18n/locales/zh-tw.json @@ -28,7 +28,6 @@ "links": { "gettingStarted": "開始入門", "introductionToNodejs": "Node.js 介紹", - "howToInstallNodejs": "如何安裝 Node.js", "howMuchJavascriptDoYouNeedToKnowToUseNodejs": "使用 Node.js 前,需要掌握多少 JavaScript 知識?", "differencesBetweenNodejsAndTheBrowser": "Node.js 與瀏覽器的差別", "theV8JavascriptEngine": "JavaScript V8 引擎", From de42811e7bd6391d13d67ecbb71dec9818fea522 Mon Sep 17 00:00:00 2001 From: itsYaraso Date: Fri, 29 Nov 2024 00:10:43 +0200 Subject: [PATCH 3/4] docs: added download link to introduction-to-nodejs --- .../pages/en/learn/getting-started/introduction-to-nodejs.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/site/pages/en/learn/getting-started/introduction-to-nodejs.md b/apps/site/pages/en/learn/getting-started/introduction-to-nodejs.md index 185b871ab79b8..45a1525f58096 100644 --- a/apps/site/pages/en/learn/getting-started/introduction-to-nodejs.md +++ b/apps/site/pages/en/learn/getting-started/introduction-to-nodejs.md @@ -96,3 +96,5 @@ and we close the response, adding the content as an argument to `end()`: ```js res.end('Hello World\n'); ``` + +[Download node.js](https://nodejs.org/en/download/package-manager) From 0ad03382603d3407682525dc7c0b7d3f6a083291 Mon Sep 17 00:00:00 2001 From: Brian Muenzenmeyer Date: Thu, 19 Dec 2024 22:50:27 -0600 Subject: [PATCH 4/4] Update apps/site/pages/en/learn/getting-started/introduction-to-nodejs.md Co-authored-by: Augustin Mauroy Signed-off-by: Brian Muenzenmeyer --- .../pages/en/learn/getting-started/introduction-to-nodejs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/pages/en/learn/getting-started/introduction-to-nodejs.md b/apps/site/pages/en/learn/getting-started/introduction-to-nodejs.md index 45a1525f58096..c43edd32f54bf 100644 --- a/apps/site/pages/en/learn/getting-started/introduction-to-nodejs.md +++ b/apps/site/pages/en/learn/getting-started/introduction-to-nodejs.md @@ -97,4 +97,4 @@ and we close the response, adding the content as an argument to `end()`: res.end('Hello World\n'); ``` -[Download node.js](https://nodejs.org/en/download/package-manager) +If you haven't already done so, [download](https://nodejs.org/en/download) Node.js.