手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆

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

首页 > PHP >

在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

« 上一篇 | 下一篇 »

只显示10条记录相关文章

值得收藏的yii2的doc中关于db Query的说明 (浏览: 29238, 评论: 0)
Yii2-smarty的一些小坑 (浏览: 24954, 评论: 0)
Yii2的主从数据库设置 (浏览: 14965, 评论: 0)
Yii2 without Bower (浏览: 12714, 评论: 1)

2条记录访客评论

看不懂吼吼吼吼

Post by m on 2017, February 24, 10:15 PM 引用此文发表评论 #1

谢谢,真是帮了大忙

Post by yii2 on 2016, February 23, 9:05 AM 引用此文发表评论 #2


发表评论

评论内容 (必填):