# How to run npm test

**URL:** <https://community.postman.com/t/how-to-run-npm-test/21671>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [March 22, 2021, 5:31am UTC](https://community.postman.com/t/how-to-run-npm-test/21671 "2021-03-22T05:31:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![2019ucp1350](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/2019ucp1350/32/7521_2.png) [@2019ucp1350](https://community.postman.com/u/2019ucp1350)\
**Post date:** [March 22, 2021, 5:31am UTC](https://community.postman.com/t/how-to-run-npm-test/21671/1 "2021-03-22T05:31:58Z")

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

I had created a new language( **React Js** ) code snippet. But I am unable to run the npm test command  
I am getting this error  
**Error: Cannot find module ‘./newmanResponses.json’**

```auto
Require stack:
- G:\postman-code-generators\test\codegen\newman\newmanTestUtil.js
- G:\postman-code-generators\codegens\react-axios\test\newman\newman.test.js
- G:\postman-code-generators\node_modules\mocha\lib\mocha.js
- G:\postman-code-generators\node_modules\mocha\index.js
- G:\postman-code-generators\codegens\react-axios\npm\test-newman.js
- G:\postman-code-generators\codegens\react-axios\npm\test.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (G:\postman-code-generators\test\codegen\newman\newmanTestUtil.js:6:21)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'G:\\postman-code-generators\\test\\codegen\\newman\\newmanTestUtil.js',
    'G:\\postman-code-generators\\codegens\\react-axios\\test\\newman\\newman.test.js',
    'G:\\postman-code-generators\\node_modules\\mocha\\lib\\mocha.js',
    'G:\\postman-code-generators\\node_modules\\mocha\\index.js',
    'G:\\postman-code-generators\\codegens\\react-axios\\npm\\test-newman.js',
    'G:\\postman-code-generators\\codegens\\react-axios\\npm\\test.js'
  ]
}

```

I had tried to find this error but unable to find anything. Can anyone help me understand what must be included in /newmanResponses.json in order to run the npm test command?

---

<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:** [April 10, 2025, 9:50am UTC](https://community.postman.com/t/how-to-run-npm-test/21671/2 "2025-04-10T09:50:00Z")

</div>

Closed on April 10, 2025, 9:50am UTC

Thanks for your post, and sorry we didn’t get to this sooner. This isn’t the experience we want for our users.

Since the post is a bit older, we’re closing it to make room for newer discussions. If you’re still experiencing this or have new details to share, we’d love for you to start a new discussion.
