Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

riggerz29's avatar

riggerz29 wrote a reply+100 XP

5mos ago

Can't install Vapor CLI

Super late to the party, but I finally upgraded to a new Mac and initially ran the same global install command, which resulted in the same issue.

So if anyone new has the same issue and reads this, you can fix it by simply adding the composer path to your .zshrc file, which Mac uses by default.

In my case the path to composer path is :

    export PATH="$HOME/.composer/vendor/bin:$PATH"

Open your .zshrc file by running :

    sudo nano ~/.zshrc

Add the path to the file and restart the terminal or run:

    source ~/.zshrc

The you should be able to run :

    vapor --version