Jenkins Pipeline on MacOS yarn: command not found Adding PATH

Jenkins Pipeline on MacOS yarn: command not found Adding PATH

DevOps Jul 14, 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 !

Tags

TeamCMD

We are CODEMONDAY team and provide a variety of content about Business , technology, and Programming. Let's enjoy it with us.