When I run the command source $HOME/.zshrc on Jenkins shell, that runs on a MAC slave, I get the following error in the nvm initialisation:
source $HOME/.zshrc
nvm_e