# Newman.js gets opening during newman -v check in command line

**URL:** <https://community.postman.com/t/newman-js-gets-opening-during-newman-v-check-in-command-line/16918>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [October 20, 2020, 6:11am UTC](https://community.postman.com/t/newman-js-gets-opening-during-newman-v-check-in-command-line/16918 "2020-10-20T06:11:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabhumohan09](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/prabhumohan09/32/5961_2.png) [@prabhumohan09](https://community.postman.com/u/prabhumohan09)\
**Post date:** [October 20, 2020, 6:11am UTC](https://community.postman.com/t/newman-js-gets-opening-during-newman-v-check-in-command-line/16918/1 "2020-10-20T06:11:33Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

newman.js gets opening during newman -v check in the command line. Anyone facing this issue? or how to fix it? thanks in advance

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 20, 2020, 8:31am UTC](https://community.postman.com/t/newman-js-gets-opening-during-newman-v-check-in-command-line/16918/2 "2020-10-20T08:31:36Z")

</div>

Hey @prabhumohan09

Welcome to the community! ⭐

There’s not a lot of details to go off here so it will be difficult for other users to provide a solution.

Can you expand on what you’re doing, provide some step by step instructions on how to reproduce the problem you’re seeing. Screenshots and videos would also be help here too.

---

<div class="post-metadata">

**Author:** ![prabhumohan09](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/prabhumohan09/32/5961_2.png) [@prabhumohan09](https://community.postman.com/u/prabhumohan09)\
**Post date:** [October 20, 2020, 9:08am UTC](https://community.postman.com/t/newman-js-gets-opening-during-newman-v-check-in-command-line/16918/3 "2020-10-20T09:08:19Z")

</div>

Steps;-  
Installed newman using below command and observed newman@5.2.0 has installed  
$ npm install -g newman

then I try to verify the version, so used the below command  
$ newman -v  
Instead of getting newman version the ‘newman.js’ file has opened in my machine

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [October 20, 2020, 1:44pm UTC](https://community.postman.com/t/newman-js-gets-opening-during-newman-v-check-in-command-line/16918/4 "2020-10-20T13:44:13Z")

</div>

@prabhumohan09: newman -v (for Windows) and please try newman –version (for mac).

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 20, 2020, 2:16pm UTC](https://community.postman.com/t/newman-js-gets-opening-during-newman-v-check-in-command-line/16918/5 "2020-10-20T14:16:21Z")

</div>

Using `--version` or `-v` shouldn’t really make a difference on either OS as those are just the long and short commands of the same thing.

The `newman.js` file in the Newman project contains the code that executes when those commands are used in the CLI. Does the same thing happen with you use `-h`?

> <https://github.com/postmanlabs/newman/blob/develop/bin/newman.js>

The file is referenced in the package.json file in the `bin` object - [https://docs.npmjs.com/files/package.json#bin](https://docs.npmjs.com/files/package.json#bin)

Not really sure what’s happening in your set up as I don’t know how you installed `node.js` - Does this same thing happen when you try and run other node scripts?

I would uninstall node, install everything again and try again with newman.

---

<div class="post-metadata">

**Author:** ![prabhumohan09](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/prabhumohan09/32/5961_2.png) [@prabhumohan09](https://community.postman.com/u/prabhumohan09)\
**Post date:** [October 20, 2020, 5:53pm UTC](https://community.postman.com/t/newman-js-gets-opening-during-newman-v-check-in-command-line/16918/6 "2020-10-20T17:53:31Z")

</div>

@danny-dainton Thanks for the response. I used to get a proper response for the newman version command earlier, As you said there might be an issue with my node setup. Let me check and get back to you if any concerns. thanks
