Error message appearing while generating html reports

I have installed Newman and Newman-reporter-html in same folder, still whenever I run postman collection through CLI and trying to generate reports it displays following error: "ensure that the reporter is installed in the same directory as newman
run npm install newman-reporter-html
I tried everything, I have added screen-shot below and both Newman & Newman-reporter are installed in same node_modules folder. My laptop is MacBook Air M1 chip.

Hey @science-astronaut-96

Welcome to the Postman Community! :postman:

Could you try doing a full global uninstall of both followed by a new global install:

npm uninstall -g newman newman-reporter-html
npm install -g newman newman-reporter-html

This seems like a obviously solution but this basic reset has been proven to solve the installation issue.

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