---
title: Install Allure Report for Node.js
description: How to install Allure Report 2 on any OS using the Node.js npm package.
---

# Install Allure Report for Node.js

To get the reporting process working you need to install two components:

- [Allure Report CLI tool](#install-the-allure-report-cli)
- [Allure integration for your test framework](#install-the-test-framework-integration)

## Install the Allure Report CLI

[![Allure Report commandline npm latest version](https://img.shields.io/npm/v/allure-commandline?style=flat "Allure Report commandline npm latest version")](https://www.npmjs.com/package/allure-commandline)

Allure Report can be installed on any operating system using Node.js.

1. Make sure [Node.js](https://nodejs.org/) is installed.

1. Make sure Java version 8 or above installed, and its directory is specified in the `JAVA_HOME` environment variable.

1. In a terminal, run this command:

   ```
   npm install -g allure-commandline
   ```

1. Run this command to see if it reports the latest version:

   ```
   allure --version
   ```

   If the `allure` command does not work, it is most likely caused by the NPM's directory not being added to your operating system's `PATH` variable. To get the path that needs to be added, run this command:

   **Windows:**
   ```powershell
   npm config get prefix
   ```

   **macOS:**
   ```bash
   echo $(npm config get prefix)/bin
   ```

   **Linux:**
   ```bash
   echo $(npm config get prefix)/bin
   ```

## Install the test framework integration

Look for the integration for your test framework in the list of [Allure integrations](/docs/frameworks/), and follow the setup instructions.
