V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
zhangxiaodao
V2EX  ›  问与答

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

  •  
  •   zhangxiaodao · 2020-06-16 16:20:56 +08:00 · 765 次点击
    这是一个创建于 1404 天前的主题,其中的信息可能已经有所发展或是发生改变。

    场景举例: 我有两个 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 条回复    2020-06-16 17:30:39 +08:00
    ChoateYao
        1
    ChoateYao  
       2020-06-16 17:30:39 +08:00
    不行,composer 安装跟你项目放哪里没有关系,跟有没有 composer.json 有关系。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2717 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:07 · PVG 20:07 · LAX 05:07 · JFK 08:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.