Bash wrapper command for npm in jenkins throws error

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

Hi @aakash.gupta, sorry to hear youโ€™re having some difficulties. Can you please check out these guidelines 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 on Stack Overflow where other users had issues with Jenkins not being able to find npm.

1 Like