postmanlabs / newman

Newman is a command-line collection runner for Postman
https://www.postman.com
Apache License 2.0
6.88k stars 1.17k forks source link

Installing Problem with Newman #2927

Closed KomalGupta9950 closed 2 years ago

KomalGupta9950 commented 2 years ago

I have Installed node js and set path in Env. variable. After that I am trying to installing newman from below mentioned command:

npm install -g newman

but I am getting below error.

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.
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.

changed 111 packages, and audited 112 packages in 15s

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

found 0 vulnerabilities

Steps to reproduce the problem:

  1. First Installed node.js under C: directory.
  2. Then did path set in Environment variables
  3. checked node and npm version using command prompt
  4. installed Newman using npm install -g newman command after executing this command not able to see Newman version line code. image image image

Could you please check below screenshot and let me know how to resolve this issue?

Thank You

DannyDainton commented 2 years ago

Hey @KomalGupta9950

It looks like Newman has been installed, those are just warnings coming from some dependencies.

Have you tried using it with a Postman Collection or tried to use newman -v?

KomalGupta9950 commented 2 years ago

Dear @DannyDainton

I tried to use newman -v command after using npm install -g newman command. Although I am getting some error which is I am not understanding what kind of this error. Here attached screenshot in below:

if you understand then could you please provide me solution how can I resolve this issue?

Thank in advance!!

Screenshot (12)

VaishnaviChallaPostman commented 2 years ago

Hey @KomalGupta9950 👋 This is usually a common issue with NPM on windows. The path to the binary fails to be added to the windows environment.

image Add the directory that contains the npm file, to your environment variable. It is generally present in either of: C:\Users\<USERNAME>\AppData\Roaming\npm\node_modules\.bin or C:\Users\<USERNAME>\AppData\Roaming\npm

Or, you can directly run Newman as: "C:\Users\<USERNAME>\AppData\Roaming\npm\newman" run

VaishnaviChallaPostman commented 2 years ago

Closing due to inactivity. Feel free to re-open if you are still facing any issues :)

unhlcvlt commented 1 year ago

I am facing this problem on my mac OS 10.15.7 (19H2026)

RamyaTeja95 commented 1 year ago

I am also facing same issue, can some one guide me to resolve this. I have even set environment variables as well

PFB screenshots for reference. Capture

NithyaRAN commented 4 months ago

I am also facing the same issue. But after adding enviornment variable to point to newman/bin path.

I am getting new error.

image

NithyaRAN commented 4 months ago

Hi all,

I could able to resolve the issue for the below error.

newman : File C:\Users\Dell\AppData\Roaming\npm\newman.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1

Run command in Power shell administrator. Set-ExecutionPolicy RemoteSigned Give Y to the prompt and Enter. This resolves the issue. Make sure to remove unnecessary addition if you have added anything manually for the npm or newman,