Install Allure Report for Node.js
Allure Report can be installed on any operating system via the Node.js package manager. The installation is tested with npm, yarn, and pnpm.
Make sure Node.js is installed.
Make sure Java version 8 or above installed, and its directory is specified in the
JAVA_HOME
environment variable.In a terminal, run this command:
Run this command to see if it reports the latest version:
allure --version
If the
allure
command does not work, make sure that your package manager is configured correctly. For yarn, see Adding the install location to your PATH. For pnpm, runpnpm setup
. Make sure to close and re-open the terminal window after you fix the issue.Alternatively, you can replace the
allure
command withnpx allure
, assuming that you used npm for installation. For example:npx allure --version