Search code examples
npmreportcommand-line-interfacenewman

I am receiving could not find "htmlextra" reporter when i run it on my local (MAC OSX) neman html report generation


I am receiving below message, when i run newman run command with parameter -r htmlextra. Where i have already installed htmlextra using -g (globally). But when i create a newman .js file i am able to execute. Please advice what might have went wrong.

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

Thanks in advance.


Solution

  • This issue resolved. By copying the newman-reporter-html, newman-reporter-htmlextra packages into the newman -> node_modules directory.

    Ideally the modules has to been within the node_modules directory.

    It was on mac os x. I hope similar is applicable to windows OS based machines.