yiisoft / yii2

Yii 2: The Fast, Secure and Professional PHP Framework
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
14.24k stars 6.9k forks source link

Composer update #6537

Closed MassimilianoMancini closed 9 years ago

MassimilianoMancini commented 9 years ago

Performing composer update I have:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package bower-asset/jquery could not be found in any version
, there may be a typo in the package name.
  Problem 2
    - The requested package bower-asset/bootstrap could not be found in any vers
ion, there may be a typo in the package name.
  Problem 3
    - The requested package bower-asset/jquery-ui could not be found in any vers
ion, there may be a typo in the package name.
  Problem 4
    - The requested package bower-asset/jquery.inputmask could not be found in a
ny version, there may be a typo in the package name.
  Problem 5
    - The requested package bower-asset/punycode could not be found in any versi
on, there may be a typo in the package name.
  Problem 6
    - yiisoft/yii2 2.0.1 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
e -> no matching package found.
    - yiisoft/yii2 2.0.1 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
e -> no matching package found.
    - Installation request for yiisoft/yii2 2.0.1 -> satisfiable by yiisoft/yii2
[2.0.1].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your min
imum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.

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

Here is my composer.json

{
    "name": "yiisoft/yii2-app-basic",
    "description": "Yii 2 Basic Application Template",
    "keywords": ["yii2", "framework", "basic", "application template"],
    "homepage": "http://www.yiiframework.com/",
    "type": "project",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/yii2/issues?state=open",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/yii2"
    },
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "2.0.1",
        "yiisoft/yii2-bootstrap": "*",
        "yiisoft/yii2-swiftmailer": "*",
        "kartik-v/yii2-widgets": "*",
        "itbz/fpdf": "*",
        "bower-asset/jquery": "@stable",
        "bower-asset/bootstrap": "@stable",
        "bower-asset/jquery-ui": "@stable",
        "bower-asset/jquery.inputmask": "@stable",
        "bower-asset/punycode": "@stable"

    },
    "require-dev": {
        "yiisoft/yii2-codeception": "*",
        "yiisoft/yii2-debug": "*",
        "yiisoft/yii2-gii": "*",
        "yiisoft/yii2-faker": "*"
    },
    "config": {
        "process-timeout": 1800
    },
    "scripts": {
        "post-create-project-cmd": [
            "yii\\composer\\Installer::postCreateProject"
        ]
    },
    "extra": {
        "yii\\composer\\Installer::postCreateProject": {
            "setPermission": [
                {
                    "runtime": "0777",
                    "web/assets": "0777",
                    "yii": "0755"
                }
            ],
            "generateCookieValidationKey": [
                "config/web.php"
            ]
        },
        "asset-installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
        }
    }
}

Everything was good since yesterday.

Thanks

samdark commented 9 years ago

Do you have latest Composer version? Do you have https://github.com/francoispluchino/composer-asset-plugin installed globally?

MassimilianoMancini commented 9 years ago

I have the latest composer version Composer version 1.0-dev (2b16a73659b12c35b2ab623b69688295d95ff2de) 2014-12-15 20:34:23

To be sure, before posting the issue, I re-run php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta4"

but I don't know how to check if it is correctly installed

samdark commented 9 years ago

Confirmed :( Checking the reason for it.

githubjeka commented 9 years ago

hmm .. your composer.json works for me.

samdark commented 9 years ago

@githubjeka do composer self-update and it won't anymore.

samdark commented 9 years ago

@massimilianomancini try composer self-update --rollback for now.

MassimilianoMancini commented 9 years ago

Rolled back to

Rolling back to version 2014-12-15_09-25-45-f592a36.

and it's fine:

Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing bower-asset/jquery (2.1.1)
    Loading from cache

  - Installing bower-asset/bootstrap (v3.3.1)
    Loading from cache

  - Installing bower-asset/jquery-ui (1.11.2)
    Loading from cache

  - Installing bower-asset/jquery.inputmask (3.1.48)
    Downloading: 100%

  - Installing bower-asset/punycode (v1.3.2)
    Loading from cache

  - Installing bower-asset/yii2-pjax (dev-master fb92be8)
    Cloning fb92be865c0fd6583714475cb7d629020749d73f

  - Installing bower-asset/typeahead.js (v0.10.5)
    Loading from cache

  - Updating kartik-v/bootstrap-star-rating dev-master (15831b3 => c32f43e)
    Checking out c32f43e707bf74de8820d470bae55153bf4b7549

  - Updating kartik-v/yii2-krajee-base dev-master (01ae105 => 1136c02)
    Checking out 1136c0262a96a557d9de239f9c05d727b49bd7f7

  - Updating kartik-v/bootstrap-fileinput dev-master (3ae3c96 => 327fd47)
    Checking out 327fd47cf18e27c5ac4bed35bdd0a549ac5244ae

Writing lock file
Generating autoload files
francoispluchino commented 9 years ago

Using the 1.0.0-alpha9 version or dev-master#cc4223e6f9f66cd7c8ba78dc7a8442d1029ab2d2 of Composer.

See composer/composer#3561.

francoispluchino commented 9 years ago

Fixed by composer/composer@331bda235c810787be90219f7625cc8a548aa92e.

samdark commented 9 years ago

I confirm that it works after composer self-update now.

ilyatau commented 9 years ago

Hello, I think what problem has returned. Today I made update to composer, and run composer update. Output of composer:

 [Composer\DependencyResolver\SolverProblemsException]                                                    
    Problem 1                                                                                              
      - yiisoft/yii2 dev-master requires bower-asset/jquery.inputmask 3.1.* -> no matching package found.  
      - yiisoft/yii2 2.0.x-dev requires bower-asset/jquery.inputmask 3.1.* -> no matching package found.   
      - Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0.x-dev, dev-master].     
  Potential causes:                                                                                        
   - A typo in the package name                                                                            
   - The package is not available in a stable-enough version according to your minimum-stability setting   
     see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.         
  Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems. 
ahmadrusli commented 9 years ago

Same here. using kartik extension must use minimum stability to "dev", then if we run composer-update, now yii 2.0.2 removed and begin to instal 2.0.2-beta.

nicosavini commented 9 years ago

I'm having the same issue with latest version. This was working fine last week.

metalagman commented 9 years ago

got the same issue

nicosavini commented 9 years ago

I solved it by deleting cache /.composer/cache /.composer/vendor and then updating composer global require "fxp/composer-asset-plugin:1.0.0" (no more "-beta")

cebe commented 9 years ago

please try updating composer and the composer asset plugin to the latest version and try again. If the issue still persists please open a new issue, this one is old and likely not related.