/home/ec2-user/ - 我在这个路径下有 composer.json 和 composer.lock 文件。drupal 9.1 也安装在这个路径下。我通过将 composer.phar 文件放在 /usr/local/bin 下使作曲家全球化
/home/ec2-user/drupal - 通过 composer 在此路径下安装模块时,它们将安装在以下文件夹中,
/home/ec2-user/drupal/modules/contrib. 但我无法在扩展/模块部分下查看 drupal UI 中的模块。这是'phpmailer_smtp'模块特别需要的,它需要通过composer安装phpMailer库。
/home/ec2-user/drupal/vendor/phpmailer/phpmailer - 这是安装库的路径。仍在 drupal 上,我无法查看通过 EC2 上的 composer 安装的模块。有人可以帮忙吗?
"require": {
"composer/installers": "^1.9",
"drupal/core-composer-scaffold": "^9.1",
"drupal/core-project-message": "^9.1",
"drupal/core-recommended": "^9.1",
"drupal/core-vendor-hardening": "^9.1",
"drupal/mailsystem": "^4.3",
"drupal/phpmailer_smtp": "2.0.2",
"drupal/smtp": "^1.0"
},
"installer-paths": {
"core": [
"type:drupal-core"
],
"libraries/{$name}": [
"type:drupal-library"
],
"modules/contrib/{$name}": [
"type:drupal-module"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"modules/custom/{$name}": [
"type:drupal-custom-module"
],
}