简体   繁体   中英

Can't install laravel installer via composer on MAC (catalina)

I am being asked to install PHP extension. I've used brew install php@7.3 it updated but has not satisfied the requirements. What do i need to do to satisfy the requirements?

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for laravel/installer ^2.2 -> satisfiable by laravel/installer[v2.2.0].
    - laravel/installer v2.2.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.

I've tried the suggestions in this post and it did not work for me.

I found this solution here .

"I solved this problem by first creating a new dir sbin in the local dir:

sudo mkdir sbin

then if you are like me using macOS highSierra 10+ you need to run:

sudo chown -R $(whoami) $(brew --prefix)

after this

brew link php

"

brew install php It will install default utilities

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM