简体   繁体   English

无法通过 MAC (catalina) 上的 composer 安装 laravel 安装程序

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

I am being asked to install PHP extension.我被要求安装 PHP 扩展。 I've used brew install php@7.3 it updated but has not satisfied the requirements.我已经使用 brew install php@7.3 它更新但不满足要求。 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: “我通过首先在本地目录中创建一个新的目录 sbin 解决了这个问题:

sudo mkdir sbin

then if you are like me using macOS highSierra 10+ you need to run:那么如果你像我一样使用 macOS highSierra 10+,你需要运行:

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

after this在这之后

brew link php

" "

brew install php It will install default utilities brew install php 它将安装默认实用程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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