Page 1 of 1

composer does not install dependencies

PostPosted: January 28th, 2019, 1:44 pm
by volkerstraehle
If have a Project in existing Directory and wanted to create the VS-Solution.

When trying to install missing dependencies I got the following error:

====Executing command 'composer install --no-interaction --no-ansi'====

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
- The requested PHP extension ext-fileinfo * is missing from your system. Install or enable PHP's fileinfo extension.

====composer command completed with exit code 2====

How can I solve this?

Re: composer does not install dependencies

PostPosted: January 29th, 2019, 10:44 am
by mhpcc
Reinstall PHP on your system. Assuming you are on Windows, you can choose from either XAMPP, or (which I'd recommend) PHP for IIS. If you're working with composer, make sure you install a 64 bit version of PHP, depending on your dependencies composer often runs out of memory with the 2gb limitation of 32 bit php. You can easily install PHP for IIS from Microsofts Web Platform Installer tool at https://www.microsoft.com/web/downloads/platform.aspx.

Once you've installed a new 64 bit version and deleted your old php version, PHP Tools for Visual Studio should automatically notice and change settings accordingly, but to verify that you can go under Tools-Options-PHP Tools-Interpreter and choose the correct PHP installation.