diff options
author | Patrice Chalin <pchalin@gmail.com> | 2022-07-01 19:10:21 +0300 |
---|---|---|
committer | Patrice Chalin <pchalin@gmail.com> | 2022-07-01 19:10:21 +0300 |
commit | 662535048dc3b7827ed51eb859030f46f3c7a6f7 (patch) | |
tree | 420308d037de2d08f1f4c3a2f7df3294e44fd7ba | |
parent | 04236af1e1e1f664688495a1f2afdd785af4758e (diff) |
Add Node install/update instructions to prerequisites
-rw-r--r-- | userguide/content/en/docs/Get started/other-options.md | 32 |
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 |