On this page, you’ll learn:
How to install Chocolatey, the Windows package manager.
How to install Node.js.
If you’ve never installed Antora before, you’ll need to complete the steps on this page before you can install Antora and use it to generate a documentation site.
Since Antora is built on Node.js, you’ll need Node.js (commands:
npx) installed on your machine to install and run Antora.
You can use any active LTS or maintenance LTS version of Node.js with Antora, but we recommend using the most recent active LTS version so that you benefit from the latest performance and security enhancements. The Node.js release schedule shows the active Node.js LTS versions.
To see if you have Node.js installed, and which version, open PowerShell and type:
$ node --version
You should see a version string, such as:
If the command fails with an error, you don’t have Node.js installed. The best way to install Node.js on Windows is to use Chocolatey. If you don’t have Chocolatey on your machine, go to install Chocolatey to get it set up. Otherwise, skip directly to install nvm and Node.
If the command returns a version that isn’t an active LTS version, upgrade to the active Node.js LTS version using nvm.
If the command returns an active Node.js LTS version, you’re all set to install Antora.
The best way to install the Node Version Manager (nvm) and Node.js is with Chocolatey, the package manager for Windows.
Open a PowerShell terminal and run it as an Administrator by right clicking on the PowerShell icon and selecting Run as Administrator.
Type the following command in the terminal:
$ Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
You’re now ready to install nvm and Node.js.
Install nvm and Node.js
Open a PowerShell terminal, right click on the PowerShell icon, and select Run as Administrator.
If you just installed Chocolatey using the instructions in the proceeding section, use the same terminal (running as Administrator) that you already have open.
To install the Node Version Manager (nvm) for Windows, enter the following command in the terminal:
$ choco install -y nvm
Close the terminal.
Open a new, regular PowerShell terminal, and install Node.js using nvm.
$ nvm install 16.18.0
When using nvm for Windows, you must enter an exact version of Node.js (e.g.,
16.18.0) until nvm-windows#214 is resolved.
Now that Node.js is installed, you’re ready to install Antora.
Upgrade Node.js using nvm
If you have nvm installed but your Node.js version is not an active LTS release, type the following command in your terminal:
$ nvm install 16.18.0
When using nvm for Windows, you must enter the full version of Node.js (i.e.,
Once you’ve installed Node.js, you’re ready to install Antora.