{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9737","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9737/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9737/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9737/events","html_url":"https://github.com/yiisoft/yii2/issues/9737","id":107404151,"number":9737,"title":"Fail to add dependency on composer","user":{"login":"agungsijawir","id":1901132,"avatar_url":"https://avatars.githubusercontent.com/u/1901132?v=3","gravatar_id":"","url":"https://api.github.com/users/agungsijawir","html_url":"https://github.com/agungsijawir","followers_url":"https://api.github.com/users/agungsijawir/followers","following_url":"https://api.github.com/users/agungsijawir/following{/other_user}","gists_url":"https://api.github.com/users/agungsijawir/gists{/gist_id}","starred_url":"https://api.github.com/users/agungsijawir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agungsijawir/subscriptions","organizations_url":"https://api.github.com/users/agungsijawir/orgs","repos_url":"https://api.github.com/users/agungsijawir/repos","events_url":"https://api.github.com/users/agungsijawir/events{/privacy}","received_events_url":"https://api.github.com/users/agungsijawir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-20T16:50:40Z","updated_at":"2015-09-20T17:20:16Z","closed_at":null,"body":"Hi,\r\n\r\nI get some weird message when updating my project using composer, because I need to add `yiisoft/yii2-authclient`. \r\n\r\n```\r\n$ php composer.phar update       \r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\n\r\n                                                                                                                                                                                                          \r\n  [ErrorException]                                                                                                                                                                                                 \r\n  Argument 1 passed to Fxp\\Composer\\AssetPlugin\\Repository\\BowerRepository::createVcsRepositoryConfig() must be of the type array, null given, called in /home/vagrant/.composer/vendor/fxp/composer-asset-plugin  \r\n  /Repository/AbstractAssetsRepository.php on line 136 and defined                                                                                                                                                 \r\n                                                                                                                                                                                                                   \r\nupdate [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesN]\r\n```\r\nHere is my composer.json file:\r\n\r\n```json\r\n{\r\n  \"name\": \"agungsijawir/tokoonline\",\r\n  \"description\": \"Afrakids Shop with aMember Integration\",\r\n  \"keywords\": [\r\n    \"yii2\",\r\n    \"framework\",\r\n    \"aMember\",\r\n    \"restclient\"\r\n  ],\r\n  \"homepage\": \"http://www.agungandika.com/\",\r\n  \"type\": \"project\",\r\n  \"license\": \"BSD-3-Clause\",\r\n  \"support\": {\r\n    \"issues\": \"https://github.com/agungsijawir/tokoonline/issues?state=open\",\r\n    \"source\": \"https://github.com/agungsijawir/tokoonline\"\r\n  },\r\n  \"minimum-stability\": \"stable\",\r\n  \"require\": {\r\n    \"php\": \">=5.4.0\",\r\n    \"yiisoft/yii2\": \">=2.0.6\",\r\n    \"yiisoft/yii2-bootstrap\": \"*\",\r\n    \"yiisoft/yii2-swiftmailer\": \"*\",\r\n    \"yiisoft/yii2-httpclient\": \"dev-master\",\r\n    \"gregwar/image\": \"2.0.20\",\r\n    \"yiisoft/yii2-authclient\": \"dev-master\"\r\n  },\r\n  \"require-dev\": {\r\n    \"yiisoft/yii2-codeception\": \"*\",\r\n    \"yiisoft/yii2-debug\": \"*\",\r\n    \"yiisoft/yii2-gii\": \"*\",\r\n    \"yiisoft/yii2-faker\": \"*\"\r\n  },\r\n  \"config\": {\r\n    \"process-timeout\": 1800\r\n  },\r\n  \"extra\": {\r\n    \"asset-installer-paths\": {\r\n      \"npm-asset-library\": \"vendor/npm\",\r\n      \"bower-asset-library\": \"vendor/bower\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nAfter I add `yiisoft/yii2-authclient`, I run `php composer.phar update` and getting this error:\r\n\r\nI tried to follow discussion [here](https://github.com/composer/composer/issues/4260#issuecomment-122951689) and [here](https://github.com/francoispluchino/composer-asset-plugin/pull/133) by running `composer.phar global update` but still no luck.\r\n\r\nBelow is my current configuration:\r\n```\r\n$ php compser.phar\r\nComposer version 1.0-dev (8f44f9cc67f2ccf9fd2a6fbe29b130e258295ca0) 2015-09-20 15:41:02\r\n\r\n$ php composer.phar global update\r\nChanged current directory to /home/vagrant/.composer\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\nWriting lock file\r\nGenerating autoload files\r\n\r\n$ php -v\r\nPHP 5.6.13-1+deb.sury.org~trusty+3 (cli) \r\nCopyright (c) 1997-2015 The PHP Group\r\nZend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies\r\n    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies\r\n    with Xdebug v2.3.1, Copyright (c) 2002-2015, by Derick Rethans\r\n\r\n```\r\n\r\nDoubting with my configuration, I tried to install \"fresh\" app-advanced following this commands:\r\n```\r\n$ curl -sS https://getcomposer.org/installer | php\r\n#!/usr/bin/env php\r\nAll settings correct for using Composer\r\nDownloading...\r\n\r\nComposer successfully installed to: /var/www/composer.phar\r\nUse it: php composer.phar\r\n\r\n$ php composer.phar create-project yiisoft/yii2-app-advanced advanced 2.0.6\r\nInstalling yiisoft/yii2-app-advanced (2.0.6)\r\n  - Installing yiisoft/yii2-app-advanced (2.0.6)\r\n    Loading from cache\r\n\r\nCreated project in advanced\r\nLoading composer repositories with package information\r\nInstalling dependencies (including require-dev)\r\n\r\n                                                                                                                                                                \r\n  [ErrorException]                                                                                                                                                                                                 \r\n  Argument 1 passed to Fxp\\Composer\\AssetPlugin\\Repository\\BowerRepository::createVcsRepositoryConfig() must be of the type array, null given, called in /home/vagrant/.composer/vendor/fxp/composer-asset-plugin  \r\n  /Repository/AbstractAssetsRepository.php on line 136 and defined                                                                                                                                                 \r\n                                                                                                                                                                                                                   \r\ncreate-project [-s|--stability=\"...\"] [--prefer-source] [--prefer-dist] [--repository-url=\"...\"] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [package] [directory] [version]\r\n```\r\n\r\nStill no luck. Does my configuration (i.e composer.json, etc) wrong? "},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/141812014","html_url":"https://github.com/yiisoft/yii2/issues/9737#issuecomment-141812014","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/9737","id":141812014,"user":{"login":"snickom","id":5807028,"avatar_url":"https://avatars.githubusercontent.com/u/5807028?v=3","gravatar_id":"","url":"https://api.github.com/users/snickom","html_url":"https://github.com/snickom","followers_url":"https://api.github.com/users/snickom/followers","following_url":"https://api.github.com/users/snickom/following{/other_user}","gists_url":"https://api.github.com/users/snickom/gists{/gist_id}","starred_url":"https://api.github.com/users/snickom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snickom/subscriptions","organizations_url":"https://api.github.com/users/snickom/orgs","repos_url":"https://api.github.com/users/snickom/repos","events_url":"https://api.github.com/users/snickom/events{/privacy}","received_events_url":"https://api.github.com/users/snickom/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T17:20:16Z","updated_at":"2015-09-20T17:20:16Z","body":"https://github.com/RobinHerbots/jquery.inputmask/pull/1042"}}