Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yii2 composer error exception #74

Closed
davidndunoon opened this issue Dec 3, 2014 · 5 comments
Closed

Yii2 composer error exception #74

davidndunoon opened this issue Dec 3, 2014 · 5 comments
Labels

Comments

@davidndunoon
Copy link

I have been using Yii2 and installing extensions with composer but now I'm am getting an error exception, I have reinstalled xampp and composer but still getting error, below is details of exception that happens when installing any template or extention, any help would be appreciated.

c:\xampp\php>composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files

c:\xampp\php>composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
Changed current directory to C:/Users/mcdermottd/AppData/Roaming/Composer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)

  • Installing fxp/composer-asset-plugin (v1.0.0-beta4)
    Downloading: 100%

Writing lock file
Generating autoload files

c:\xampp\php>composer create-project --prefer-dist yiisoft/yii2-app-advanced yii
-application
Installing yiisoft/yii2-app-advanced (2.0.0)

  • Installing yiisoft/yii2-app-advanced (2.0.0)
    Downloading: 100%

Created project in yii-application
Loading composer repositories with package information
Installing dependencies (including require-dev)

[ErrorException]
Argument 1 passed to Fxp\Composer\AssetPlugin\Repository\BowerRepository::c
reateVcsRepositoryConfig() must be of the type array, null given, called in
C:\Users\mcdermottd\AppData\Roaming\Composer\vendor\fxp\composer-asset-plu
gin\Repository\AbstractAssetsRepository.php on line 136 and defined

create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repos
itory-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--n
o-scripts] [--no-progress] [--keep-vcs] [--no-install] [package] [directory] [ve
rsion]

c:\xampp\php>

@francoispluchino
Copy link
Member

Use the 1.0.0@dev version, this bug is fixed in master branch.

@davidndunoon
Copy link
Author

Thank you francois for your response, is the dev version for composer or for fxp/composer-asset-plugin .

thanks again

David

@francoispluchino
Copy link
Member

For Composer and the plugin.

@francoispluchino
Copy link
Member

@davidndunoon It's OK for you now?

@davidndunoon
Copy link
Author

Hi Francois,
Thanks for your assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants