From aef4a4b3c121cfa72d08e03cd3bb2c223af39d48 Mon Sep 17 00:00:00 2001 From: Baz Murphy Date: Mon, 18 Nov 2024 09:10:01 +0000 Subject: [PATCH 1/3] adjust nvm instructions --- .../en/module/js1/install-node/index.md | 36 +++++++++++++------ 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/common-content/en/module/js1/install-node/index.md b/common-content/en/module/js1/install-node/index.md index e7cdc62be..b45d03e43 100644 --- a/common-content/en/module/js1/install-node/index.md +++ b/common-content/en/module/js1/install-node/index.md @@ -25,7 +25,7 @@ Check if you already have NodeJS installed by running `node -v` in a terminal. T 1. Install nvm by running the following commands in your terminal: ```terminal -curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash ``` 2. After the installation is complete, you'll need to source the nvm script by running: @@ -46,7 +46,7 @@ nvm install --lts node -v ``` -You should see a version number like `v20.16.0`. +You should see a version number like `v22.11.0`. 5. Check that you have successfully installed npm by running: @@ -54,43 +54,57 @@ You should see a version number like `v20.16.0`. npm -v ``` -You should see a version number like `10.5.0`. +You should see a version number like `10.9.0`. ##  On Mac -1. Install nvm by running the following command in your terminal: +1. Install the the Xcode Command Line Developer Tools ```terminal -curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash +xcode-select --install ``` -2. After the installation is complete, you'll need to source the nvm script by running: +These may already be installed, in which case you will see "xcode-select: note: Command line tools are already installed." and can continue to the next step. + +2. Create a (Non-Login Interactive) Shell Configuration File + +```terminal +touch ~/.zshrc +``` + +3. Install nvm by running the following command in your terminal: + +```terminal +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash +``` + +4. After the installation is complete, you'll need to source the nvm script by running: ```terminal source ~/.zshrc ``` -3. Install the latest LTS version of Node.js by running: +5. Install the latest LTS version of Node.js by running: ```terminal nvm install --lts ``` -4. Check that you have successfully installed Node.js by running: +6. Check that you have successfully installed Node.js by running: ```terminal node -v ``` -You should see a version number like `v20.16.0`. +You should see a version number like `v22.11.0`. -5. Check that you have successfully installed npm by running: +7. Check that you have successfully installed npm by running: ```terminal npm -v ``` -You should see a version number like `10.5.0`. +You should see a version number like `10.9.0`. {{}} Using nvm allows you to easily install and manage multiple versions of Node.js on your system. This will help you access projects that use older versions of Node.js. From ad6d637ebbe2b9d270412b8dfdf4e9bbe91339e0 Mon Sep 17 00:00:00 2001 From: Baz Murphy Date: Mon, 18 Nov 2024 11:51:57 +0000 Subject: [PATCH 2/3] incorporate suggestions --- common-content/en/module/js1/install-node/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common-content/en/module/js1/install-node/index.md b/common-content/en/module/js1/install-node/index.md index b45d03e43..891ac2885 100644 --- a/common-content/en/module/js1/install-node/index.md +++ b/common-content/en/module/js1/install-node/index.md @@ -58,7 +58,7 @@ You should see a version number like `10.9.0`. ##  On Mac -1. Install the the Xcode Command Line Developer Tools +1. Install the the Xcode Command Line Developer Tools by running the following command in your terminal: ```terminal xcode-select --install @@ -72,7 +72,7 @@ These may already be installed, in which case you will see "xcode-select: note: touch ~/.zshrc ``` -3. Install nvm by running the following command in your terminal: +3. Install nvm: ```terminal curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash From 827fb3b7e8d20f4df6eaa660b54e7ca510829677 Mon Sep 17 00:00:00 2001 From: Baz Murphy Date: Mon, 18 Nov 2024 11:52:50 +0000 Subject: [PATCH 3/3] o_o --- common-content/en/module/js1/install-node/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-content/en/module/js1/install-node/index.md b/common-content/en/module/js1/install-node/index.md index 891ac2885..fc6d53fdb 100644 --- a/common-content/en/module/js1/install-node/index.md +++ b/common-content/en/module/js1/install-node/index.md @@ -66,7 +66,7 @@ xcode-select --install These may already be installed, in which case you will see "xcode-select: note: Command line tools are already installed." and can continue to the next step. -2. Create a (Non-Login Interactive) Shell Configuration File +2. Create a (Non-Login Interactive) Shell Configuration File: ```terminal touch ~/.zshrc