From 9adf7eec1b7babb6de73872a98d7165177818ec8 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Tue, 7 May 2024 23:36:42 -0400 Subject: [PATCH 1/4] docs(getting-started): Refer to nvm installation instructions Fixes #1079 --- main/guides/getting-started/index.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/main/guides/getting-started/index.md b/main/guides/getting-started/index.md index e346ddbc1..6cbf93174 100644 --- a/main/guides/getting-started/index.md +++ b/main/guides/getting-started/index.md @@ -43,18 +43,15 @@ In this section you'll be installing prerequisite components into your environme At this point the Node Version Manager (NVM) utility will be installed. `nvm` makes it easy to select the specific version of [Node](https://nodejs.org/) that will be required for this tutorial (v18.16.0). +First, follow the [nvm installation instructions](https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating), including sourcing `nvm.sh` into the shell for later steps. ```sh -wget -O- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash +# For example: +wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash +export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm ``` -Next, run the command: - -```sh -source ~/.bashrc -``` - -Finally, install Node with the command: - +Then, install Node. ```sh nvm install v18.18.0 ``` From 27dad5cf32724ef15462bbf033c066fb23d3a7b2 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Tue, 7 May 2024 23:36:42 -0400 Subject: [PATCH 2/4] docs(getting-started): Use canonical spelling and capitalization for nvm and Node.js * https://github.com/nvm-sh/nvm * https://nodejs.org/ --- main/guides/getting-started/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/guides/getting-started/index.md b/main/guides/getting-started/index.md index 6cbf93174..b9793b2b9 100644 --- a/main/guides/getting-started/index.md +++ b/main/guides/getting-started/index.md @@ -36,12 +36,12 @@ Currently Agoric supports macOS and Linux (including [Windows Subsystem for Linu In this section you'll be installing prerequisite components into your environment. If you're working with your own environment rather than using a fresh Ubuntu install, you may already have some or all of these components already installed. -### Installing NVM and Node +### Installing nvm and Node.js
-Installing NVM and Node on Ubuntu +Installing nvm and Node.js on Ubuntu -At this point the Node Version Manager (NVM) utility will be installed. `nvm` makes it easy to select the specific version of [Node](https://nodejs.org/) that will be required for this tutorial (v18.16.0). +At this point the [nvm](https://github.com/nvm-sh/nvm) (Node Version Manager) utility will be installed. `nvm` makes it easy to select the specific version of [Node.js](https://nodejs.org/) that will be required for this tutorial (v18.16.0). First, follow the [nvm installation instructions](https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating), including sourcing `nvm.sh` into the shell for later steps. ```sh @@ -51,7 +51,7 @@ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || pr [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm ``` -Then, install Node. +Then, install Node.js. ```sh nvm install v18.18.0 ``` From e2c642e9605e6c63cf338ea871651153e2519569 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Wed, 8 May 2024 18:33:14 -0400 Subject: [PATCH 3/4] docs(getting-started): Remove redundant Node.js version reference --- main/guides/getting-started/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/guides/getting-started/index.md b/main/guides/getting-started/index.md index b9793b2b9..1b87641f8 100644 --- a/main/guides/getting-started/index.md +++ b/main/guides/getting-started/index.md @@ -41,7 +41,7 @@ In this section you'll be installing prerequisite components into your environme
Installing nvm and Node.js on Ubuntu -At this point the [nvm](https://github.com/nvm-sh/nvm) (Node Version Manager) utility will be installed. `nvm` makes it easy to select the specific version of [Node.js](https://nodejs.org/) that will be required for this tutorial (v18.16.0). +At this point the [nvm](https://github.com/nvm-sh/nvm) (Node Version Manager) utility will be installed. `nvm` makes it easy to select the specific version of [Node.js](https://nodejs.org/) that will be required for this tutorial. First, follow the [nvm installation instructions](https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating), including sourcing `nvm.sh` into the shell for later steps. ```sh From a7337f04c43860c5154c7ab29a48afbf94376b21 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 9 May 2024 14:28:21 -0400 Subject: [PATCH 4/4] docs(getting-started): Clarify that nvm is just a means to an end --- main/guides/getting-started/index.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/main/guides/getting-started/index.md b/main/guides/getting-started/index.md index 1b87641f8..480db180b 100644 --- a/main/guides/getting-started/index.md +++ b/main/guides/getting-started/index.md @@ -36,14 +36,16 @@ Currently Agoric supports macOS and Linux (including [Windows Subsystem for Linu In this section you'll be installing prerequisite components into your environment. If you're working with your own environment rather than using a fresh Ubuntu install, you may already have some or all of these components already installed. -### Installing nvm and Node.js +### Installing Node.js
-Installing nvm and Node.js on Ubuntu +Installing Node.js on Ubuntu -At this point the [nvm](https://github.com/nvm-sh/nvm) (Node Version Manager) utility will be installed. `nvm` makes it easy to select the specific version of [Node.js](https://nodejs.org/) that will be required for this tutorial. +This tutorial requires a specific version of [Node.js](https://nodejs.org/). -First, follow the [nvm installation instructions](https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating), including sourcing `nvm.sh` into the shell for later steps. +The [nvm](https://github.com/nvm-sh/nvm) (Node Version Manager) utility makes it easy to select the right version. + +First, follow the [nvm installation instructions](https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating), including sourcing `nvm.sh` into the shell. ```sh # For example: wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash @@ -56,6 +58,11 @@ Then, install Node.js. nvm install v18.18.0 ``` +Finally, verify the Node.js version. +```sh +node --version +``` +
### Installing Yarn