sjaakp / yii2-illustrated-behavior

Adds image to ActiveRecord
http://www.sjaakpriester.nl/software/illustrated
MIT License
43 stars 17 forks source link

composer problem, manually not work #6

Closed gabriele-carbonai closed 8 years ago

gabriele-carbonai commented 9 years ago

Hello I try to download from composer:

Problem 1

  • The requested package sjaakp/yii2-illustrated-behavior could not be found in any version, there may be a typo in the package name.

Potential causes:

Read http://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, reverting ./composer.json to its original content.

And if i try to install manually in folder: vendor/sjaakp/illustrated then, i will back this error

ReflectionException Class sjaakp\illustrated\Illustrated does not exist

gabriele-carbonai commented 9 years ago

was a problem in composer/autoload_psr4.php missed code

nigelterry commented 9 years ago

gomonkey

I have this problem too and I don't understand your solution above. Can you provide more detail?

xavsio4 commented 9 years ago

Same for me

xavsio4 commented 9 years ago

under vendor yiisoft/extensions.php you will have to add this

'sjaakp/illustrated' => 
  array (
    'name' => 'sjaakp/illustrated',
    'version' => '1.3.0.0',
    'alias' => 
    array (
      '@sjaakp/illustrated' => $vendorDir . '/sjaakp/illustrated',
    ),
  ),

but that is really not the good way

xavsio4 commented 9 years ago

you will have other problems in doing so.

nagyt234 commented 9 years ago

Use the following command, not the manual installation:

composer require sjaakp/yii2-illustrated-behavior "dev-master"
aidonsnous commented 8 years ago

I tried this composer require sjaakp/yii2-illustrated-behavior "dev-master" but still getting the error :+1: Your requirements could not be resolved to an installable set of packages.

Problem 1

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further commo n problems.

Installation failed, reverting ./composer.json to its original content.

pistej commented 8 years ago

This kind of error is caused by old fxp/composer-asset-plugin, simple solution is (update), (re)install fxp/composer-asset-plugin with command: composer global require "fxp/composer-asset-plugin:~1.0.0" and tne you can run: composer update