
export PATH=”$HOME/.fastlane/bin:$PATH”
If you are working on Jenkins then this worked for me ?
Under Jenkins -> Manage Jenkins -> Configure System -> Global properties -> Environment variables I added:
Name: Path Value: /bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Reference