I am trying to run composer update and I get the following errors:
Problem 1
- The requested PHP extension ext-zip * is missing from your sy
i know this thread has true answered, i do those with this approach :
brew link php@7.3 it is showing hint to using
echo 'export PATH="/usr/local/opt/php@7.3/bin:$PATH"' >> ~/.zshrc echo 'export PATH="/usr/local/opt/php@7.3/sbin:$PATH"' >> ~/.zshrc
in terminal, echo 'export PATH="/usr/local/opt/php@7.3/bin:$PATH"' >> ~/.zshrc enter
in terminal, echo 'export PATH="/usr/local/opt/php@7.3/sbin:$PATH"' >> ~/.zshrc enter
next execution this : source ~/.zshrc
execution which php the results must show /usr/local/opt/php@7.3/bin/php
try again composer update, if show Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/Cellar/composer/1.9.2/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
please change php.ini limit with memory_limit = -1
try search php.ini, type in terminal /usr/local/opt/php@7.3/bin/php --ini , the results must show: Configuration File (php.ini)
Path: /usr/local/etc/php/7.3 Loaded Configuration File: /usr/local/etc/php/7.3/php.ini Scan for additional .ini files in: /usr/local/etc/php/7.3/conf.d Additional .ini files parsed: /usr/local/etc/php/7.3/conf.d/ext-opcache.ini
nano /usr/local/etc/php/7.3/php.ini, append memory_limit =-1,save
restart php
re-execution composer update.
Hope my answer can help you.