windows下composer和yii2安装问题及解决办法
来源:互联网 发布:java applet插件下载 编辑:程序博客网 时间:2024/05/19 19:58
windows下 composer常见错误及处理。
错误一:
Warning: This development build of composer is over 30 days old. It is recommend
ed to update it by running "C:\ProgramData\ComposerSetup\bin\composer.phar self-
update" to get the latest version.
解决方法:
composer selfupdate
如下图:
错误二:
You are running composer with xdebug enabled. This has a major impact on runtime
performance. See https://getcomposer.org/xdebug
如图:
解决方法:
打开php.ini,在zend_extension前加分号
;zend_extension = "d:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll"
见文档:
https://getcomposer.org/doc/articles/troubleshooting.md#xdebug-impact-on-composer
错误三:
Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\V
ersionParser::parseLinks() in C:\Documents and Settings\Administrator\Applicatio
n Data\Composer\vendor\fxp\composer-asset-plugin\Repository\VcsPackageFilter.php
on line 272
解决办法:
删除composer资源插件,再重新安装
Linux : rm -rf ~/.composer/vendor/fxp
Windows : rm -r %APPDATA%\Composer\vendor\fxp
重新安装:
composer global require "fxp/composer-asset-plugin:~1.0.3"
如果还有其它错误,可尝试全局更新:
composer global update
见参考:
http://stackoverflow.com/questions/32901750/why-do-i-get-php-fatal-error-when-i-want-to-install-an-extension
windows截图如下:
错误四:
The"yiisoft/yii2-composer" plugin requires composer-plugin-api 1.0.0,this *WIL L* breakin the future andit should be fixed ASAP (require ^1.0for example). The "fxp/composer-asset-plugin" plugin requires composer-plugin-api 1.0.0,this*WILL*breakin the future andit should be fixed ASAP (require ^1.0for example ).
解决办法:
Yii2 需要 composer-plugin-api 1.0 以上的版本,运行以下命令:
composer global require "fxp/composer-asset-plugin:~1.1.1"
错误五:
no token given
解决办法:
在C:/user/Administrator/AppData/Roaming/Composer下创建auth.json写入从github上生成的access token
操作方法: 进入上面所说的目录执行 “composer config github-oauth.github.com 你的token”;
- windows下composer和yii2安装问题及解决办法
- Windows下使用Composer安装yii2遇到的问题及解决方法
- 【Day64】Windows下使用Composer安装yii2遇到的问题及解决方法
- windows下通过Composer安装Yii2.0
- yii2 安装问题 利用composer安装 windows环境
- windows下XAMPP、Composer和Laravel的安装及配置
- composer安装yii2问题总结
- composer安装yii2问题总结
- Composer安装yii2遇到的token问题及解决方法
- Composer-Windows下的安装问题
- Yii2.0 安装教程 Composer (windows 版)
- yii2.0 windows环境通过 Composer 安装
- windows环境使用composer安装YII2.0
- composer安装yii2,及报错
- windows下安装composer
- windows 下安装 composer
- Windows下安装composer
- windows下Composer安装
- 折半插入排序
- 南京理工大学第八届程序设计大赛(校外镜像) F sequence
- Hdu 5661 Claris and XOR
- 下一代Web图像格式:JPEG、JPEG XR、JPEG2000、WebP、BPG
- 面试大全
- windows下composer和yii2安装问题及解决办法
- 行业动态-2016年4月
- SpringMVCRest post delete请求转换
- 读书笔记之Android绘图机制及图像处理值色彩处理的相关技巧
- linux的内存管理机制、内存监控、buffer/cache异同
- IBM storwize V5000存储基础配置
- List中存放不同类型对象之间的转换
- TextView加载html图片有问题
- 台大林轩田《机器学习基石》学习笔记:可行性(Hoeffding、Multi-binhoeffding、VC bound)