Command not found - Oh-My-Zsh

前端 未结 12 979
佛祖请我去吃肉
佛祖请我去吃肉 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:45

    Question:

    ➜ ~ mvn

    zsh: command not found: mvn

    Answer:

    step 1:

        vim ~/.zshrc

    step 2:(Add at the end of the file)

        source ~/.bash_profile;

    step 3:(Execution shell)

        > source ~/.bash_profile

    You can use mvn :

    ➜ / mvn

    [INFO] Scanning for projects... .......

提交回复
热议问题