newman-reporter-html
newman-reporter-html copied to clipboard
newman: could not find "html" reporter
I have installed newman
and tried to run tests which is working fine and for report creation I installed newman-reporter-html
.
The above packages are installed globally But while running the newman
newman run "https://api.getpostman.com/collections/{{collection_uid}}?apikey={{api_key}}" -r html --reporter-html-export /home/ubuntu/newman/reports/
it says
newman: could not find "html" reporter
ensure that the reporter is installed in the same directory as newman
run `npm install newman-reporter-html`
newman-reporter-html
is already installed . But it is still warning me install
The following are the list of the packages installed
npm list -g -depth=0
/usr/lib
├── [email protected]
├── [email protected]
└── [email protected]
I also have the same issue.
/usr/lib ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected]
I had to install the html-reporter, hermione, etc. along with all dependencies that show WARN to resolve that error. So look for the WARN message '… required a peer of xxx but none is installed. You must install peer dependencies your self.' and install what is missing. Postman Echo runs fine with all those installed:
newman run https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv 21 -r html
/usr/lib ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected]
+1 the same issue reproduced with any other custom reporter too
tries to install locally and globally, does not help
same problem -
- tried npm install newman-reporter-html
- npm audit
- -r cli,htmlextra (tried using htmlextra still nothing)
- installed htmlextra packages still nothing ''npm install -g htmlextra''
- however did not use ''npm audit fix'' version of newman is 5.1.0 (i dunno if this is a concern or not)