Error while installing the htmlextra package

Getting following error when trying to install the htmlextra package

$ npm install -S newman-reporter-htmlextra
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated gulp-header@1.8.12: Removed event-stream from gulp-header
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

added 294 packages in 18s

13 packages are looking for funding
  run `npm fund` for details

Hey @svazha :wave:

Those warnings are related to some of the dependencies in the projects, it looks like it installed without any errors. I’ll look at updating those where possible - There’s no timeline on that though.

Have you tried using Newman with the reporter? Did it successfully create a report for you?

If you have any issues with the reporter, please feel free to raise them directly on the repo:

Hi Danny ,

I tried running this command again , and not getting errors. (PFB)
$ npm install -S newman-reporter-htmlextra

up to date, audited 295 packages in 1s

13 packages are looking for funding
run npm fund for details

found 0 vulnerabilities

But when I execute

$ npm install -g newman-reporter-htmlextra

npm WARN deprecated source-map-url@0.4.1: See GitHub - lydell/source-map-url: [DEPRECATED] Tools for working with sourceMappingURL comments.
npm WARN deprecated gulp-header@1.8.12: Removed event-stream from gulp-header
npm WARN deprecated urix@0.1.0: Please see GitHub - lydell/urix: [DEPRECATED] Makes Windows-style paths more unix and URI friendly.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated source-map-resolve@0.5.3: See GitHub - lydell/source-map-resolve: [DEPRECATED] Resolve the source map and/or sources for a generated file.
npm WARN deprecated resolve-url@0.2.1: GitHub - lydell/resolve-url: [DEPRECATED] Like Node.js’ `path.resolve`/`url.resolve` for the browser.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() · V8 for details.
changed 294 packages in 18s
13 packages are looking for funding
run npm fund for details

ANd when executing:
newman run collection.json -e env.json -r htmlextra

I get below error:
newman: could not find “htmlextra” reporter
ensure that the reporter is installed in the same directory as newman
please install reporter using npm

Might sound like an obvious thing to do but I was suggest removing everything and reinstalling it again.

npm uninstall -g newman newman-reporter-htmlextra

and then installing it again

npm install -g newman newman-reporter-htmlextra

If that’s been globally installed correctly, you should be able to run this from the terminal

newman-reporter-htmlextra -v

This is working now , thanks for your help

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.