I am facing this issue Cannot run program "appium": error=2, on jenkins

Hooks:25 - Driver is null. Creating android driver
AppiumManager:15 - appium --session-override -p 52104 --chromedriver-port 52105 -bp 52106
java.io.IOException: Cannot run program “appium”: error=2, No such file or directory

On my personal mac the job to execute android scripts works fine on local jenkins server.
however on Jenkins build machine i am facing the above error and scripts are not getting executed with same configuration .

Not sure why jenkins which is on shared directory on mac is not referring to appium installed .

Need help on this ,tried multiple appium installs with npm ,appium path configuration of bash profile ,all other dependecies like android sdk… done but still not working