Command not found - Oh-My-Zsh

前端 未结 12 923
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-25 11:54

I recently installed zsh and oh-my-zsh in my Mac. Now when I try to run a maven command from the terminal, I am getting the following error.

$ mvn install
zs         


        
12条回答
  •  再見小時候
    2020-12-25 12:49

    Try below steps:

    Open terminal and run command vi ~/.zshrc

    Add below lines in file:

    export M2_HOME=/Users//Downloads/apache-maven-3.6.3 
    export PATH=${M2_HOME}/bin:${PATH} 
    export PATH
    

    Save file successfully

    Open another terminal instance & run command mvn -version

    It should work!

提交回复
热议问题