解决使用composer出现的错误
来源:互联网 发布:淘宝banner图片 编辑:程序博客网 时间:2024/06/13 06:21
解决使用composer出现的错误
第一次使用composer ,因为yii项目必须要用到,然而·····
composer install / update 会报如下错误:
F:\xxx\www\yii_blog>composer install
You are running composer with xdebug enabled. This has a major impacton runtime performance.
See https://getcomposer.org/xdebug
Loading composer repositories with package informationInstalling dependencies (including require-dev) from lock fileWarning: The lock file is not up to date with the latest changes in composer.json.
You may be getting outdated dependencies.
Runupdate to update them.Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation requestfor fxp/composer-asset-plugin v1.0.0-beta4 -> satisfiable by fxp/composer-asset-plugin[v1.0.0-beta4]. - fxp/composer-asset-plugin v1.0.0-beta4 requires composer-plugin-api 1.0.0-> no matching package found.
Problem 2
- Installation requestfor 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 -> nomatching package found.
Problem 3
- yiisoft/yii2-composer 2.0.3 requires composer-plugin-api 1.0.0 -> nomatching package found.
- yiisoft/yii2 2.0.3 requires yiisoft/yii2-composer * -> satisfiableby yiisoft/yii2-composer[2.0.3].
- Installation requestfor yiisoft/yii2 2.0.3 -> satisfiable by yiisoft/yii2[2.0.3].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://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
```````````````````````````````````````````````````````````````````````````````````````````````````````````
经过了一番的几小时的摸索,于是我开始了我的报错解决之道:
step0:
安装composer:
要么①下载composer.phar 要么②安装composer install.exe for windows
step1:
Yii2 需要
檢查
如果都沒有的話使用
composer-plugin-api 1.0
以上的版本檢查
composer-asset-plugin
的版本或者查看一下有無安裝, 先確定有沒有或者有沒有超過1.0以上如果都沒有的話使用
composer global require "fxp/composer-asset-plugin:~1.1.1"
去下載,[http://www.yiichina.com/topic/6216]
step3:
启用Packagist镜像
系统全局配置: 即将配置信息添加到 Composer 的全局配置文件 config.json 中。
composer config -g repo.packagist composer https://packagist.phpcomposer.com
[http://pkg.phpcomposer.com/]
step4:
安装fxp/composer-asset-plugin
:composer require fxp/composer-asset-plugin
这时候中间会提示需要输入一个token:
并且:记住命令行要求github的token:
所以去github:
得到token后,复制过来
等待安装fxp/composer-asset-plugin
完成后是这样的:
[https://packagist.org/packages/fxp/composer-asset-plugin]
0 0
- 解决使用composer出现的错误
- 解决Laravel5.1使用composer update时出现Call to undefined method getCachedCompilePath()错误
- 解决composer 下载错误
- composer install中出现的用户名错误解决办法
- windows 安装composer 报SSL错误的解决方式
- android 使用ListView时出现的错误解决
- 使用signApk签名ROM包出现addDigestsToManifest错误的解决
- 解决使用SecureCRT出现的Generic clipboard failure错误
- 解决使用CURL出现code ERROR 60错误的问题
- 解决使用 Composer 的时候提示输入 Token
- 解决使用 Composer 的时候提示输入 Token
- 安装Composer出现的问题
- Composer常见错误解决-值得收藏
- windows下 composer的错误
- Composer的基本使用
- composer的使用
- composer的使用总结
- composer 的初步使用
- RTP开源库jrtplib在VS2013下编译 安装和配置
- 利用Gitpage+hexo开发自己的博客
- SLAM代码(多视几何基础)
- 20160916随笔
- Android UI 之 Progress&ProgressDialog
- 解决使用composer出现的错误
- 正则表达式基本语法详解
- javaweb学习(5)--Cookie
- 自定义Java注解的方式与应用
- javaweb学习(6)--Session
- C语言学习:结构体(笔记)
- Mysql主从数据库配置
- javaweb学习(7)--Application/servletContext
- java实现链表