postmanlabs / newman-reporter-html

Apache License 2.0
81 stars 86 forks source link

newman: could not find "html" reporter #165

Open madhusudan12 opened 4 years ago

madhusudan12 commented 4 years ago

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
├── newman@4.6.0
├── newman-reporter-html@1.0.5
└── npm@6.13.7
zhaobin200306 commented 4 years ago

I also have the same issue.

/usr/lib ├── newman@4.6.0 ├── newman-reporter-html@1.0.5 ├── newman-reporter-htmlextra@1.12.1 └── npm@6.13.4

acats-dkolev commented 4 years ago

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 ├── font-awesome@4.7.0 ├── hermione@3.1.0 ├── html-reporter@5.15.2 ├── mkdirp@1.0.4 ├── newman@4.6.1 ├── newman-reporter-html@1.0.5 ├── newman-reporter-htmlextra@1.13.2 ├── newman-reporter-teamcity@0.1.12 ├── npm@6.14.4 ├── npmlog@4.1.2 ├── postman-collection@3.6.0 ├── pug@2.0.4 ├── react@16.13.1 ├── react-dom@16.13.1 ├── react-html-parser@2.0.2 ├── react-markdown@4.3.1 ├── react-redux@7.2.0 ├── react-transition-group@4.3.0 ├── reapop@2.1.0 ├── redux@4.0.5 ├── redux-thunk@2.3.0 ├── resolve-url@0.2.1 ├── tslint@5.20.1 ├── tsutils@3.17.1 └── typescript@3.8.3

olexandr13 commented 1 year ago

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

tries to install locally and globally, does not help

rubabatulUrba commented 1 year ago

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)