zhangxiaodao
V2EX  ›  问与答

如果我的 git 仓库中没有 composer.json,我是否可以将它作为依赖通过 composer 安装

  •  
  •   zhangxiaodao · Jun 16, 2020 · 1662 views
    This topic created in 2172 days ago, the information mentioned may be changed or developed.

    场景举例: 我有两个 git 仓库(不包含 composer.json ),我本地新建了了一个项目,需要依赖这两个仓库,我可以在本地建立一个 composer.json,然后通过 composer 将我的两个仓库下载安装到本地么?

    已经看过文档,并且做了尝试,没有成功,所以我怀疑这样行不通。 报错提示: No valid composer.json was found in any branch or tag of https://github.com/****.git, could not load a package from it.

    1 replies    2020-06-16 17:30:39 +08:00
    ChoateYao
        1
    ChoateYao  
       Jun 16, 2020
    不行,composer 安装跟你项目放哪里没有关系,跟有没有 composer.json 有关系。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1080 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 466ea39e · 31ms · UTC 18:28 · PVG 02:28 · LAX 11:28 · JFK 14:28
    ♥ Do have faith in what you're doing.