嘿我正在尝试使用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.
这意味着您无法更改此特定包的安装路径.无论如何,我认为没有必要将它安装到默认供应商文件夹的任何不同目录中.