composer error

Published 2 months ago by afghany

i cloned my project on other machine and while i am trying execute "composer install" to download my dependencies i got this error :

Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages.

Problem 1 - Installation request for automattic/woocommerce 1.3.0 -> satisfiable by automattic/woocommerce[1.3.0]. - automattic/woocommerce 1.3.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. Problem 2 - Installation request for erusev/parsedown 1.7.1 -> satisfiable by erusev/parsedown[1.7.1]. - erusev/parsedown 1.7.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. Problem 3 - Installation request for laravel/framework v5.6.26 -> satisfiable by laravel/framework[v5.6.26]. - laravel/framework v5.6.26 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. Problem 4 - Installation request for phar-io/manifest 1.0.1 -> satisfiable by phar-io/manifest[1.0.1]. - phar-io/manifest 1.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 5 - Installation request for phpunit/php-code-coverage 6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7]. - phpunit/php-code-coverage 6.0.7 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 6 - Installation request for phpunit/phpunit 7.2.6 -> satisfiable by phpunit/phpunit[7.2.6]. - phpunit/phpunit 7.2.6 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 7 - Installation request for theseer/tokenizer 1.1.0 -> satisfiable by theseer/tokenizer[1.1.0]. - theseer/tokenizer 1.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 8 - automattic/woocommerce 1.3.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. - pixelpeter/laravel5-woocommerce-api-client v3.0.1 requires automattic/woocommerce 1.3.* -> satisfiable by automattic/woocommerce[1.3.0]. - Installation request for pixelpeter/laravel5-woocommerce-api-client v3.0.1 -> satisfiable by pixelpeter/laravel5-woocommerce-api-client[v3.0.1].

To enable extensions, verify that they are enabled in those .ini files: - /etc/php/7.2/cli/php.ini - /etc/php/7.2/cli/conf.d/10-opcache.ini - /etc/php/7.2/cli/conf.d/10-pdo.ini - /etc/php/7.2/cli/conf.d/20-calendar.ini - /etc/php/7.2/cli/conf.d/20-ctype.ini - /etc/php/7.2/cli/conf.d/20-exif.ini - /etc/php/7.2/cli/conf.d/20-fileinfo.ini - /etc/php/7.2/cli/conf.d/20-ftp.ini - /etc/php/7.2/cli/conf.d/20-gettext.ini - /etc/php/7.2/cli/conf.d/20-iconv.ini - /etc/php/7.2/cli/conf.d/20-json.ini - /etc/php/7.2/cli/conf.d/20-phar.ini - /etc/php/7.2/cli/conf.d/20-posix.ini - /etc/php/7.2/cli/conf.d/20-readline.ini - /etc/php/7.2/cli/conf.d/20-shmop.ini - /etc/php/7.2/cli/conf.d/20-sockets.ini - /etc/php/7.2/cli/conf.d/20-sysvmsg.ini - /etc/php/7.2/cli/conf.d/20-sysvsem.ini - /etc/php/7.2/cli/conf.d/20-sysvshm.ini - /etc/php/7.2/cli/conf.d/20-tokenizer.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

Snapey
Snapey
2 months ago (992,285 XP)

So this server is missing some extensions, particularly mbstring which may be resolved by changing the php.ini file as suggested in the error.

afghany

@Snapey can u be specific , what i should change in php.ini ?

Cronix
Cronix
2 months ago (726,290 XP)

Look at the error message. It says everything you need to install/enable for your php installation.

  1. the requested PHP extension curl is missing from your system.
  2. the requested PHP extension mbstring is missing from your system
  3. the requested PHP extension dom is missing from your system.

As far as what to do to enable them, that depends on your OS and how you installed php. Google "windows php install mbstring" or whatever your OS is.

afghany

@Cronix okay thanks for your help :)

jlrdw
jlrdw
2 months ago (244,890 XP)

@Cronix maybe you could set up a remote connection like some tech support companies do and fix it.

Norton actually did that for me one time. Way back when I was new to Norton Antivirus.

But you can't charge OP anything, have to do it for free.

Please sign in or create an account to participate in this conversation.