dongyi2083 2016-12-16 21:16
浏览 253
已采纳

无法使用composer安装wp-cli

Trying to install wp-cli globally - but it does not work:

 $ composer global require wp-cli/wp-cli
Changed current directory to /home/self/.composer
Using version ^1.0 for wp-cli/wp-cli
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for wp-cli/wp-cli ^1.0 -> satisfiable by wp-cli/wp-cli[v1.0.0].
    - Conclusion: remove symfony/console v3.0.2
    - Conclusion: don't install symfony/console v3.0.2
    - wp-cli/wp-cli v1.0.0 requires symfony/console ~2.7 -> satisfiable by symfony/console[v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2.7.2, v2.7.20, v2.7.21, v2.7.22, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.2, v2.8.3, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9].
    - Can only install one of: symfony/console[v2.7.0, v3.0.2].
    ...
    - Can only install one of: symfony/console[v2.8.9, v3.0.2].
    - Installation request for symfony/console (locked at v3.0.2) -> satisfiable by symfony/console[v3.0.2].


Installation failed, deleting ./composer.json.

edit

composer global why symfony/console

Changed current directory to /home/self/.composer
consolidation/annotated-command  2.2.2   requires  symfony/console (^2.8|~3)    
consolidation/log                1.0.3   requires  symfony/console (~2.5|~3.0)  
consolidation/output-formatters  3.1.5   requires  symfony/console (~2.5|~3.0)  
consolidation/robo               1.0.5   requires  symfony/console (~2.8|~3.0)  
laravel/installer                v1.3.1  requires  symfony/console (~2.3|~3.0)  
victorjonsson/markdowndocs       1.3.7   requires  symfony/console (>=2.6) 
  • 写回答

2条回答 默认 最新

  • dongping1012 2016-12-17 12:28
    关注

    I was able to solve the problem by removing the global composer.lock and run a composer global install

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?