加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > PHP > 正文

path – 将包安装到自定义目录Composer中

发布时间:2020-05-25 08:50:23 所属栏目:PHP 来源:互联网
导读:嘿我正在尝试使用composer将软件包安装到自定义的“admin”目录中. 这是我的JSON: { name: frontier/installer, description: The best front end engineer package around, require: { aheinze/cockpit: * }, extr

嘿我正在尝试使用composer将软件包安装到自定义的“admin”目录中.

这是我的JSON:

{
  "name": "frontier/installer","description": "The best front end engineer package around","require": {
    "aheinze/cockpit": "*"
  },"extra":{
    "installer-paths":{
      "admin": ["aheinze/cockpit"]
    }
  }
}

现在,当我运行composer安装它所有安装但默认为vendor / aheinze / cockpit我不能为我的生活找出原因.

做过我的研究这应该是正确的代码……任何明显的错误?

干杯.

如果要使用installer-paths选项,则要在其他路径中安装的程序包必须要求编写器/安装程序.

在你的情况下,aheinze / cockpit包不需要作曲家/安装程序,你可以在其composer.json at github中看到.

看看composer documentation for custom paths,你会发现它告诉你:

Note: You cannot use this to change the path of any package. This is only applicable to packages that require composer/installers and use a custom type that it handles.

这意味着您无法更改此特定包的安装路径.无论如何,我认为没有必要将它安装到默认供应商文件夹的任何不同目录中.

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读