手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表2015年02月15日的文章

yiisoft/yii2 2.0.2 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found

在composer update项目的时候,报了如标题一样的错误,当然这个错误 有一大堆

XML/HTML代码
  1. composer update  
  2. Loading composer repositories with package information  
  3. Updating dependencies (including require-dev)  
  4. Your requirements could not be resolved to an installable set of packages.  
  5.   
  6.   Problem 1  
  7.     - The requested package bower-asset/jquery could not be found in any version, there may be a typo in the package name.  
  8.   Problem 2  
  9.     - Installation request for yiisoft/yii2 dev-master -> satisfiable by yiisoft/yii2[dev-master].  
  10.     - yiisoft/yii2 dev-master requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.  
  11.   Problem 3  
  12.     - yiisoft/yii2 2.0.x-dev requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.  
  13.     - yiisoft/yii2 dev-master requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.  
  14.     - Removal request for yiisoft/yii2-imagine == 2.0.9999999.9999999-dev  
  15.     - yiisoft/yii2-imagine 2.0.0 requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[dev-master, 2.0.x-dev].  
  16.     - yiisoft/yii2-imagine 2.0.0-rc requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[dev-master, 2.0.x-dev].  
  17.     - yiisoft/yii2-imagine 2.0.1 requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[dev-master, 2.0.x-dev].  
  18.     - yiisoft/yii2-imagine 2.0.2 requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[dev-master, 2.0.x-dev].  
  19.     - Removal request for yiisoft/yii2-imagine == 9999999-dev  
  20.     - Installation request for yiisoft/yii2-imagine * -> satisfiable by yiisoft/yii2-imagine[2.0.0, 2.0.0-rc, 2.0.1, 2.0.2, 2.0.x-dev, dev-master].  
  21.   
  22. Potential causes:  
  23.  - A typo in the package name  
  24.  - The package is not available in a stable-enough version according to your minimum-stability setting  
  25.    see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.  
  26.   
  27. Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.  
看上去好纠结,但其实官方有过提示,通过查看:http://www.yiiframework.com/doc-2.0/guide-start-installation.html#installing-via-composer,可知,只要运行:
XML/HTML代码
  1. composer global require "fxp/composer-asset-plugin:1.0.0"  
问题解决。
XML/HTML代码
  1. composer update  
  2. Loading composer repositories with package information  
  3. Updating dependencies (including require-dev)  
  4. Reading bower.json of bower-asset/jquery.inputmask (3.1.47)  
  5. Could not fetch https://api.github.com/repos/RobinHerbots/jquery.inputmask/contents/bower.json?ref=9ff37e85bc2fa2350475c4a7fa60aa20cd211481, enter your GitHub credentials to go over the API rate limit  
  6. The credentials will be swapped for an OAuth token stored in /Users/*******/.composer/auth.json, your password will not be stored  
  7. To revoke access to this token you can visit https://github.com/settings/applications  
  8. Username:********  
  9. Password:********  
  10. Token successfully created  
  11. Reading bower.json of bower-asset/jquery.inputmask (3.1.44)  
  12. 。。。。。。。此处省略500字
 
 
 
 

Tags: yii2