windows下 composer常见问题及处理
2015-12-07 11:14
531 查看
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
如下图:
[b]错误二:[/b]
You are running composer with xdebug enabled. This has a major impact on runtime
performance. See https://getcomposer.org/xdebug
如图:
解决方法:
打开php.ini,在zend_extension前加分号
见文档:
https://getcomposer.org/doc/articles/troubleshooting.md#xdebug-impact-on-composer
[b]错误三:[/b]
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 :
Windows :
重新安装:
如果还有其它错误,可尝试全局更新:
见参考:
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* break in the future and it should be fixed ASAP (require ^1.0 for example). The "fxp/composer-asset-plugin" plugin requires composer-plugin-api 1.0.0, this*WILL* break in the future and it should be fixed ASAP (require ^1.0 for example ).
解决办法:
Yii2 需要 composer-plugin-api 1.0 以上的版本,运行以下命令:
composer global require "fxp/composer-asset-plugin:~1.1.1"
更多信息参考:
composer 中文网:http://www.phpcomposer.com/
composer官网:https://getcomposer.org/doc/
错误一:
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
如下图:
[b]错误二:[/b]
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
[b]错误三:[/b]
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* break in the future and it should be fixed ASAP (require ^1.0 for example). The "fxp/composer-asset-plugin" plugin requires composer-plugin-api 1.0.0, this*WILL* break in the future and it should be fixed ASAP (require ^1.0 for example ).
解决办法:
Yii2 需要 composer-plugin-api 1.0 以上的版本,运行以下命令:
composer global require "fxp/composer-asset-plugin:~1.1.1"
更多信息参考:
composer 中文网:http://www.phpcomposer.com/
composer官网:https://getcomposer.org/doc/
相关文章推荐
- 如何重装TCP/IP协议
- Windows 8 官方高清壁纸欣赏与下载
- 谁是桌面王者?Win PK Linux三大镇山之宝
- 对《大家都在点赞 Windows Terminal,我决定给你泼一盆冷水》一文的商榷
- Windows Clang开发环境备忘
- 从Windows系统下访问Linux分区相关软件
- 对《大家都在点赞 Windows Terminal,我决定给你泼一盆冷水》一文的商榷
- Windows下搭建本地SVN服务器
- Visual Studio 2012 示例代码浏览器 - 数以千计的开发示例近在手边,唾手可得
- Visual Studio 2012 示例代码浏览器 - 数以千计的开发示例近在手边,唾手可得
- 微软镜像下载
- windows server域用户提升到本地更高权限组中的方法
- 使用命令修改注册表键值及权限
- 通过手机、电脑远程开关机,Windows和linux机手机,电脑相互控制
- Windows XP最新应用技巧大荟萃
- Windows 系统组策略应用全攻略(上)第1/2页
- VBS脚本写的Windows硬件检测工具分享
- Microsoft Windows Vista 简体中文企业版 MVL DVD IMG 32-bit(1.9GB)