spenceclark / newman-reporter-json-summary

A Newman JSON Reporter that strips the results down to a minimum
8 stars 7 forks source link

reporter is not found #7

Open alasgarov83 opened 3 years ago

alasgarov83 commented 3 years ago

Hello!

I've installed json-summary reporter together with newman but when trying to run a collection I'm getting this:

newman: could not find "json-summary" reporter ensure that the reporter is installed in the same directory as newman please install reporter using npm

I have: Node.js v15.1.0 | npm -v 7.0.8 | newman -v 5.2.1 | 18.04.1-Ubuntu

npm list -g -depth=0 /usr/lib +-- json-summary@1.3.0 +-- newman@5.2.1 `-- npm@6.14.6

Have you ever encountered anything similar? If yes, what is the solution? I did install it using npm and with -g option, it is installed into the same directory as newman (node_modules).

I would like to use this reporter to pass newman test results to prometheus, I hope it will be suitable for this purpose.

Thank you!

blawoj commented 1 year ago

Just for future me or anyone having the same issue. Try removing all node modules and running npm install again.