Jenkins Pipeline on MacOS yarn: command not found Adding PATH

tanut aran
Feb 16, 2023

--

You might encounter the classic command not found

line 1: yarn: command not found

You can visit the information of PATH variable in Manage Jenkins > System Information and found that on Mac homebrew path is not there

Adding Path with Plus Sign

Now you fix this by going to Manage Jenkins > Configure System and looking for environment variables then tick it up.

Adding PATH+HOME_BREW there, note that you CANNOT override this just like the .bashrc style of export $PATH:/your/own/path

Hope this help !

--

--

tanut aran
tanut aran

Written by tanut aran

Co-founder and Coder at work !

No responses yet