'allure' is not recognized as an internal or external command,
时间: 2023-09-24 20:11:35 浏览: 138
This error message usually occurs when the 'allure' command is not recognized by the command prompt or terminal. It may indicate that the Allure command-line interface (CLI) is not installed or not added to the system PATH environment variable.
To resolve this issue, you can try the following steps:
1. Install Allure CLI by running the following command in the command prompt or terminal:
```
npm install -g allure-commandline
```
2. Add the Allure CLI path to the system PATH environment variable. You can do this by following these steps:
- Open the Start menu and search for "Environment Variables".
- Click on "Edit the system environment variables".
- Click on the "Environment Variables" button.
- Under "System Variables", scroll down and find the "Path" variable, then click "Edit".
- Click "New" and add the path to the allure command-line interface (e.g. "C:\Users\{username}\AppData\Roaming\npm").
- Click "OK" to save the changes.
After completing these steps, try running the 'allure' command again in the command prompt or terminal. It should be recognized now.
阅读全文