dtu36380 2017-04-09 04:36
浏览 46
已采纳

在composer上安装Yii composer资产插件

I am trying to install "fxp/composer-asset-plugin:^1.2.0" on windows 32bit composer but always failed. Here is the message

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] [--] []...

Anyone know what is the problem here? Please help Thank you

  • 写回答

1条回答 默认 最新

  • doujuan9698 2017-04-09 19:31
    关注

    You should update composer at first with

    composer selfupdate
    

    And be sure, you installing "fxp/composer-asset-plugin" globally, like official install guide says:

    composer global require "fxp/composer-asset-plugin:^1.2.0"
    

    If you are using windows, try running composer from cmd "as Administator". To clarify, if you have access to global directory, run

    composer global show -s
    

    And check output directory manually

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 对于知识的学以致用的解释
  • ¥50 三种调度算法报错 有实例
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败