admin 管理员组文章数量: 887021
php软件怎样安装路径,PHP
我尝试在特定路径下使用作曲家安装Drupal模块,
我检查了这些链接,但无法弄清楚.
请检查一下,并告诉我什么地方错了,我该怎么办?
我想要什么?
Install the Signature field module in the modules/patched directory.
这是与此问题相关的我的composer.json文件的一部分.
"require": {
"composer/installers": "^1.0.24",
"drupal/signature_field": "^1.0@RC",
},
"installer-paths": {
"core": ["type:drupal-core"],
"modules/contrib/{$name}": ["type:drupal-module"],
"profiles/contrib/{$name}": ["type:drupal-profile"],
"themes/contrib/{$name}": ["type:drupal-theme"],
"drush/contrib/{$name}": ["type:drupal-drush"],
"modules/custom/{$name}": ["type:drupal-custom-module"],
"themes/custom/{$name}": ["type:drupal-custom-theme"],
"modules/patched/{$name}": ["type:drupal-patched-module"]
},
"patches": {
"drupal/signature_field": {
"Drupal Signature Field fix multi feilds": "modules/patched/signature_field/signature_field-2993223-08.patch"
}
}
},
最后,我进行了composer的安装和composer的更新,但是模块没有转移到我想要的文件夹中
解决方法:
也许这可能会有所帮助(注意其他事项):
{
"extra": {
"installer-paths": {
"modules/patched/{$name}": ["drupal/signature_field"],
"modules/patched/{$name}": ["another/package"]
}
}
}
可能会这样:
{
"extra": {
"installer-paths": {
"modules/patched/{$name}": ["drupal/signature_field"]
}
},
"extra": {
"installer-paths": {
"modules/patched/{$name}": ["drupal/another_module"]
}
}
}
要么
{
"extra": {
"installer-paths": {
"modules/patched/{$name}": ["drupal/signature_field"]
},
"installer-paths": {
"modules/patched/{$name}": ["drupal/another_module"]
}
}
}
也,
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.
您也可以按类型输入group包裹:
{
"extra": {
"installer-paths": {
"your/custom/path/{$name}/": ["type:wordpress-plugin"]
}
}
}
或某些供应商:
{
"extra": {
"installer-paths": {
"your/custom/path/{$name}/": ["vendor:drupal"]
}
}
}
标签:drupal-8,module,php
来源: .html
本文标签: php软件怎样安装路径 php
版权声明:本文标题:php软件怎样安装路径,PHP 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/free/1698664070h313318.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论