composer-asset-plugin安装失败问题 [ 2.0 版本 ]
[miko@localhost /]$ php /usr/local/bin/composer global require "fxp/composer-asset-plugin:^1.1.2"
Changed current directory to /home/miko/.config/composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Installation failed, reverting ./composer.json to its original content.
[Composer\Downloader\TransportException]
Content-Length mismatch
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] []...
就是这样了,不明白为什么,求大神指教~~~
共 3 个回答
-
admin_admin 回答于 2017-05-03 09:44 举报
php /usr/local/bin/composer global require "fxp/composer-asset-plugin:^1.1.2" 换成最后的补丁版本1.1看看
共 1 条回复 -
http://stackoverflow.com/questions/38635257/composer-content-length-mismatch
可以看下,获取有帮助,我遇到的问题和你一样
小小龙
最后登录:2020-06-30
在线时长:5小时32分
- 粉丝1
- 金钱55
- 威望0
- 积分105