D
D
Dmitry2016-05-05 13:08:35
phpstorm
Dmitry, 2016-05-05 13:08:35

Why, when opening a laravel project in phpStorm (if it was not created in phpStorm), packages are not installed via composer?

The essence of the problem is this:
If you create a laravel composer project via phpStorm, then everything works fine and other packages are installed via composer.
But if in phpStorm you open the folder of a laravel project created not in phpStorm, then the installation of packages gives an error. Although all paths to coposer.phar and json are correct.
Mistake:

Warning: PHP Startup: Unable to load dynamic library 'e:/openserver/modules/php/PHP-5.6/ext/php_imagick.dll' .
 in Unknown on line 0
The "fxp/composer-asset-plugin" plugin requires composer-plugin-api 1.0.0, this *WILL* break in the future and it should be fixed ASAP (require ^1.0 for example).                                                                          
  [ReflectionException]                                                   
  Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist                                                               
                                                                               
  [ErrorException]                                                             
  Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository  
  ::whatProvides() should be compatible with Composer\Repository\ComposerRepo  
  sitory::whatProvides(Composer\DependencyResolver\Pool $pool, $name, $bypass  
  Filters = false)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kuznetsov, 2016-05-08
@dima9595

Apparently the package you want to install requires the "php_imagick.dll" library. And you don't have it. What build of Open Server?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question