Plumes
V2EX  ›  PHP

composer 安装依赖时报错,求助

  •  
  •   Plumes · Jun 11, 2019 · 2962 views
    This topic created in 2548 days ago, the information mentioned may be changed or developed.

    使用的是 Lumen 框架,使用 composer install 安装依赖时会有下面几个错误

    QQ 截图 20190611144846.png

    QQ 截图 20190611144833.png

    QQ 截图 20190611144855.png

    前面的两个 skipped installation 导致了缺少文件,继而引起了下面的 RuntimeException

    在加上 --prefer-source 参数从源代码安装后就没有任何报错了,使用的 composer 源也是官方镜像

    4 replies    2019-06-11 15:24:46 +08:00
    U7Q5tLAex2FI0o0g
        1
    U7Q5tLAex2FI0o0g  
       Jun 11, 2019
    Plumes
        2
    Plumes  
    OP
       Jun 11, 2019
    @littleylv 搜过了,这篇文章里的清缓存方法也试过了,还是不行。
    这篇文章里后面相当于重新创建了工程,而我现在是已经存在的工程项目,不能重新创建整个目录,应该这样就不起作用了。
    U7Q5tLAex2FI0o0g
        3
    U7Q5tLAex2FI0o0g  
       Jun 11, 2019
    @Plumes #2
    这篇文章最后新建工程是因为他本来就要新建工程……你的情况就直接 composer clearcache 然后 composer install

    但是既然你试过 clearcache 没用那我就不知道了
    BCy66drFCvk1Ou87
        4
    BCy66drFCvk1Ou87  
       Jun 11, 2019
    你这是新建的还是 clone 的项目? clone 的话要看看是不是因为.gitignore 导致缺了一些文件或目录
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1103 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 22:47 · PVG 06:47 · LAX 15:47 · JFK 18:47
    ♥ Do have faith in what you're doing.