如何使用 drush 查询数据库?

问题描述 投票:0回答:0

我使用 composer 为我的 drupal9 项目安装了 drush。 但是我的 drush 无法查询数据库。

composer require drush/drush

并使用composer安装ckeditor iframe模块

 composer require 'drupal/ckeditor_iframe

但是当我尝试使用

启用它时
./vendor/bin/drush en ckeditor_iframe

我的终端给了我错误

  Command pm: was not found. Drush was unable to query the database. As a result, many commands are unavailable. Re-run your command with --debug t  
  o see relevant log messages.  
drupal-modules drush drupal-9
© www.soinside.com 2019 - 2024. All rights reserved.