neattutorials / yii2-pjax-examples

Other
23 stars 6 forks source link

Install fails #1

Open davidnewcomb opened 7 years ago

davidnewcomb commented 7 years ago

Followed instructions but install failed.

mynetwork:yii2-pjax-examples davidnewcomb$ php composer.phar install 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

  • Installation request for yiisoft/yii2-composer 2.0.3 -> satisfiable by yiisoft/yii2-composer[2.0.3].
  • yiisoft/yii2-composer 2.0.3 requires composer-plugin-api 1.0.0 -> no matching package found. Problem 2
  • yiisoft/yii2-composer 2.0.3 requires composer-plugin-api 1.0.0 -> no matching package found.
  • yiisoft/yii2 2.0.3 requires yiisoft/yii2-composer * -> satisfiable by yiisoft/yii2-composer[2.0.3].
  • Installation request for yiisoft/yii2 2.0.3 -> satisfiable by yiisoft/yii2[2.0.3].

Potential causes:

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

Ran update instead and everything was fine:

mynetwork:yii2-pjax-examples davidnewcomb$ php composer.phar update Loading composer repositories with package information Updating dependencies (including require-dev)

  • Installing yiisoft/yii2-composer (2.0.4)
    Loading from cache
  • Installing swiftmailer/swiftmailer (v5.4.3) Loading from cache
  • Installing bower-asset/jquery (2.2.4) Loading from cache
  • Installing bower-asset/yii2-pjax (v2.0.6) Loading from cache
  • Installing bower-asset/punycode (v1.3.2) Loading from cache
  • Installing bower-asset/jquery.inputmask (3.2.7) Downloading: 100%
  • Installing cebe/markdown (1.1.1) Downloading: 100%
  • Installing ezyang/htmlpurifier (v4.8.0) Loading from cache
  • Installing yiisoft/yii2 (2.0.9) Loading from cache
  • Installing yiisoft/yii2-swiftmailer (2.0.6) Downloading: 100%
  • Installing yiisoft/yii2-codeception (2.0.5) Loading from cache
  • Installing bower-asset/bootstrap (v3.3.7) Loading from cache
  • Installing yiisoft/yii2-bootstrap (2.0.6) Loading from cache
  • Installing yiisoft/yii2-debug (2.0.6) Loading from cache
  • Installing bower-asset/typeahead.js (v0.11.1) Loading from cache
  • Installing phpspec/php-diff (v1.1.0) Loading from cache
  • Installing yiisoft/yii2-gii (2.0.5) Loading from cache
  • Installing fzaninotto/faker (v1.6.0) Loading from cache
  • Installing yiisoft/yii2-faker (2.0.3) Loading from cache

Writing lock file Generating autoload files

Suggested fix either update docs to say update if install fails or update the composer.lock file.

neattutorials commented 7 years ago

Thank you for your suggestion @davidnewcomb. It would be irresponsible of me to update dependencies without testing. And there's no time to spare for testing. I will leave a notice in the description/readme.