composer does not install dependencies

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

composer does not install dependencies

Postby volkerstraehle » January 28th, 2019, 1:44 pm

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?
volkerstraehle
 
Posts: 2
Joined: September 27th, 2018, 3:31 pm

Re: composer does not install dependencies

Postby mhpcc » January 29th, 2019, 10:44 am

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.
mhpcc
 
Posts: 20
Joined: October 19th, 2018, 10:46 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 6 guests

cron

User Control Panel

Login

Who is online

In total there are 6 users online :: 0 registered, 0 hidden and 6 guests (based on users active over the past 5 minutes)
Most users ever online was 89 on October 15th, 2018, 4:06 pm

Users browsing this forum: No registered users and 6 guests
Phalanger