Skip to content

Commit a3236cd

Browse files
chalinfekete-robert
authored andcommitted
Add Node install/update instructions to prerequisites
1 parent bbfaedf commit a3236cd

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

userguide/content/en/docs/Get started/other-options.md

+31-1
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,39 @@ npm install hugo-extended --save-dev
6464

6565
See the [`hugo-bin` documentation](https://www.npmjs.com/package/hugo-bin) for usage details.
6666

67+
### Node: Get the latest LTS release
68+
69+
Install or upgrade your version of Node to the active [LTS release][]. We
70+
recommend using **[nvm][]** to manage your Node installation (Linux command
71+
shown):
72+
73+
```console
74+
$ nvm install --lts
75+
```
76+
77+
[lts release]: https://nodejs.org/en/about/releases/
78+
[nvm]:
79+
https://github.com/nvm-sh/nvm/blob/master/README.md#installing-and-updating
80+
81+
6782
### Install PostCSS
6883

69-
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):
84+
{{% alert title="IMPORTANT: Check your Node version" color="warning" %}}
85+
86+
Docsy only supports the **active [LTS release][]** of Node. Check your version
87+
of Node (using `node -v` for example) against the active LTS release and
88+
upgrade, if necessary, by following the instructions in the previous step.
89+
90+
[lts release]: https://nodejs.org/en/about/releases/
91+
92+
{{% /alert %}}
93+
94+
To build or update your site's CSS resources, you also need
95+
[`PostCSS`](https://postcss.org/) to create the final assets. If you need to
96+
install it, you must have a recent version of [NodeJS](https://nodejs.org/en/)
97+
installed on your machine so you can use `npm`, the Node package manager. By
98+
default `npm` installs tools under the directory where you run [`npm
99+
install`](https://docs.npmjs.com/cli/v6/commands/npm-install#description):
70100

71101
```
72102
npm install -D autoprefixer

0 commit comments

Comments
 (0)