newman-reporter-html icon indicating copy to clipboard operation
newman-reporter-html copied to clipboard

newman: could not find "html" reporter

Open madhusudan12 opened this issue 5 years ago • 4 comments

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]

madhusudan12 avatar Feb 25 '20 06:02 madhusudan12

I also have the same issue.

/usr/lib ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected]

zhaobin200306 avatar Mar 10 '20 06:03 zhaobin200306

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]

acats-dkolev avatar Apr 09 '20 18:04 acats-dkolev

+1 the same issue reproduced with any other custom reporter too

tries to install locally and globally, does not help

olexandr13 avatar Feb 23 '23 12:02 olexandr13

same problem -

  1. tried npm install newman-reporter-html
  2. npm audit
  3. -r cli,htmlextra (tried using htmlextra still nothing)
  4. installed htmlextra packages still nothing ''npm install -g htmlextra''
  5. however did not use ''npm audit fix'' version of newman is 5.1.0 (i dunno if this is a concern or not)

rubabatulUrba avatar Jun 10 '23 18:06 rubabatulUrba