Running Appium (iOS) in a Jenkins job throws sudo error

Trying to run Appium via a Jenkins job gives the “Appium will not run if installed/run through sudo”.

/usr/local/lib/node_modules/appium/bin/appium.js --command-timeout “7200” --pre-launch --platform-version “8.4” --platform-name “iOS” --app “/Users/selenium/Desktop/APPNAMEHERE.app” --show-ios-log --device-name “iPhone 6”

I uninstalled/reinstalled to be sure it wasn’t with sudo, uninstalled/reinstalled brew, npm, wd.

If I run the test locally through eclipse it works fine, if I run it locally with the same command it runs fine. If I try to run it with just appium instead of pointing it directly at the .js file it says appium not found.

Kind of at a loss here, I’ve seen a lot of people with similar problems and maybe it’s my google-fu but I just can’t find anyone with the same issue. Any help would be greatly appreciated.

Edit: Sorry, forgot to specify important bits.

Latest Appium version 1.4.8, test is on a Mac Mini OS X 10.10.4