# Bash wrapper command for npm in jenkins throws error

**URL:** <https://community.postman.com/t/bash-wrapper-command-for-npm-in-jenkins-throws-error/22766>\
**Category:** Help Hub\
**Tags:** jenkins, npm\
**Created:** [April 16, 2021, 3:39pm UTC](https://community.postman.com/t/bash-wrapper-command-for-npm-in-jenkins-throws-error/22766 "2021-04-16T15:39:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aakash.gupta](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@aakash.gupta](https://community.postman.com/u/aakash.gupta)\
**Post date:** [April 16, 2021, 3:39pm UTC](https://community.postman.com/t/bash-wrapper-command-for-npm-in-jenkins-throws-error/22766/1 "2021-04-16T15:39:48Z")

</div>

I can run npm run command without error. I created a bash wrapper around the npm so I can set flags in order. Bash script is also running fine. I created a jenkins job to run that bash script but it throws error: line 25: npm: command not found

Please guide

---

<div class="post-metadata">

**Author:** ![sean.keegan](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/sean.keegan/32/6353_2.png) [@sean.keegan](https://community.postman.com/u/sean.keegan)\
**Post date:** [April 16, 2021, 4:04pm UTC](https://community.postman.com/t/bash-wrapper-command-for-npm-in-jenkins-throws-error/22766/2 "2021-04-16T16:04:42Z")

</div>

Hi @aakash.gupta, sorry to hear you’re having some difficulties. Can you please check out [these guidelines](https://community.postman.com/t/how-to-best-ask-questions-on-community-to-get-the-answers-you-need/16912) on how to ask questions here on the forum? If you can provide a little more context, if might make it easier to provide more insight.

But my initial guess is that it’s an issue with Jenkins and npm playing together, not necessarily Postman. [Here’s an issue](https://stackoverflow.com/questions/45914038/jenkins-unable-to-find-npm) on Stack Overflow where other users had issues with Jenkins not being able to find npm.
