# Error: Cannot find module 'newman'

**URL:** <https://community.postman.com/t/error-cannot-find-module-newman/2259>\
**Category:** Help Hub\
**Created:** [August 6, 2018, 4:59am UTC](https://community.postman.com/t/error-cannot-find-module-newman/2259 "2018-08-06T04:59:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshekhar](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@sshekhar](https://community.postman.com/u/sshekhar)\
**Post date:** [August 6, 2018, 4:59am UTC](https://community.postman.com/t/error-cannot-find-module-newman/2259/1 "2018-08-06T04:59:56Z")

</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 am trying to run a nodejs script where i am importing newman and running a collection. But, on compilation , it throws an error----

module.js:549  
throw err;  
^

Error: Cannot find module ‘newman’  
at Function.Module.\_resolveFilename (module.js:547:15)  
at Function.Module.\_load (module.js:474:25)  
at Module.require (module.js:596:17)  
at require (internal/module.js:11:18)  
at Object. (/Users/sshekhar/Desktop/demo/script.js:1:76)  
at Module.\_compile (module.js:652:30)  
at Object.Module.\_extensions..js (module.js:663:10)  
at Module.load (module.js:565:32)  
at tryModuleLoad (module.js:505:12)  
at Function.Module.\_load (module.js:497:3)

Please help!

---

<div class="post-metadata">

**Author:** ![anandlalvb](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/anandlalvb/32/3123_2.png) [@anandlalvb](https://community.postman.com/u/anandlalvb)\
**Post date:** [October 29, 2019, 7:21pm UTC](https://community.postman.com/t/error-cannot-find-module-newman/2259/2 "2019-10-29T19:21:57Z")

</div>

You have to install newman for your project  
`npm install newman`
