我离开Drupal已有2-3年了。我只是回来了,并通过composer安装了drush(如drush网站所推荐),现在每次尝试使用drush时,都会收到一条消息,告诉我应该使用composer:
~/sites/d7 $ drush version
Drush version : 9.0-dev-gd4a3872
~/sites/d7 $ drush dl drupal-7.x
[notice] dl has been deprecated. Please build your site using Composer. Add new projects with composer require drupal/[project-name]. Use https://www.drupal.org/project/composer_generate to build a composer.json which represents the the enabled modules on your site.
我按照这些说明通过composer安装drupal的说明下载了drupal 8 ,但是当我尝试在该项目中使用drush时,我收到此消息:
~/sites/cfbtv/web $ drush dl devel
This codebase is assembled with Composer instead of Drush. Use `composer update` and `composer require` instead of `drush pm-updatecode` and `drush pm-download`. You may override this error by [error]
using the --pm-force option.
我的本地环境有问题吗,或者现在匆忙已成为过去?
$ composer require drush/drush:8.x