Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/docsy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErin McKean <emckean@google.com>2022-07-01 21:51:18 +0300
committerGitHub <noreply@github.com>2022-07-01 21:51:18 +0300
commita94f6f1b77c232748f13a88ca36c7d2f3fd09e97 (patch)
tree420308d037de2d08f1f4c3a2f7df3294e44fd7ba
parent04236af1e1e1f664688495a1f2afdd785af4758e (diff)
parent662535048dc3b7827ed51eb859030f46f3c7a6f7 (diff)
Merge pull request #1084 from chalin/chalin-im-node-lts-2022-07-01
Add Node install/update instructions to prerequisites
-rw-r--r--userguide/content/en/docs/Get started/other-options.md32
1 files changed, 31 insertions, 1 deletions
diff --git a/userguide/content/en/docs/Get started/other-options.md b/userguide/content/en/docs/Get started/other-options.md
index daddd08..cc5f0f1 100644
--- a/userguide/content/en/docs/Get started/other-options.md
+++ b/userguide/content/en/docs/Get started/other-options.md
@@ -64,9 +64,39 @@ npm install hugo-extended --save-dev
See the [`hugo-bin` documentation](https://www.npmjs.com/package/hugo-bin) for usage details.
+### Node: Get the latest LTS release
+
+Install or upgrade your version of Node to the active [LTS release][]. We
+recommend using **[nvm][]** to manage your Node installation (Linux command
+shown):
+
+```console
+$ nvm install --lts
+```
+
+[lts release]: https://nodejs.org/en/about/releases/
+[nvm]:
+ https://github.com/nvm-sh/nvm/blob/master/README.md#installing-and-updating
+
+
### Install PostCSS
-To build or update your site's CSS resources, you also need [`PostCSS`](https://postcss.org/) to create the final assets. If you need to install it, you must have a recent version of [NodeJS](https://nodejs.org/en/) installed on your machine so you can use `npm`, the Node package manager. By default `npm` installs tools under the directory where you run [`npm install`](https://docs.npmjs.com/cli/v6/commands/npm-install#description):
+{{% alert title="IMPORTANT: Check your Node version" color="warning" %}}
+
+ Docsy only supports the **active [LTS release][]** of Node. Check your version
+ of Node (using `node -v` for example) against the active LTS release and
+ upgrade, if necessary, by following the instructions in the previous step.
+
+ [lts release]: https://nodejs.org/en/about/releases/
+
+{{% /alert %}}
+
+To build or update your site's CSS resources, you also need
+[`PostCSS`](https://postcss.org/) to create the final assets. If you need to
+install it, you must have a recent version of [NodeJS](https://nodejs.org/en/)
+installed on your machine so you can use `npm`, the Node package manager. By
+default `npm` installs tools under the directory where you run [`npm
+install`](https://docs.npmjs.com/cli/v6/commands/npm-install#description):
```
npm install -D autoprefixer