LoginSignup
0
0

More than 3 years have passed since last update.

Drush10とDrush9にダウングレードする(composer経由で)

Posted at

composer経由で2020年2月にDrushを入れる事で最新版のDrush10が導入できてます

Drush10はDrupal8.4以上を対応、としている所もあり旧環境のD7やD8を触るにあたり、Drushのバージョンを落とす必要が出てきました

以前投稿したcomposer経由でDrush10のインストールを行った記事です
https://qiita.com/m_46/items/2649caa01e683bdc68d2

この状態から、Drush9にダウングレードする手順を記したのがこの記事となります

下記3ステップで構築出来ます

1.「Drush10」のcomposer経由での削除

composer global remove drush/drush

2.「Drush9」インストール

composer global require drush/drush:9

3.Drushのバージョン確認

drush --version

「composer global require」でバージョンを指定する事で選べる様ですね

最新版指定

composer global require drush/drush:dev-master

旧バージョン指定指定

composer global require drush/drush:9

といった所でしょうか

※記事寄稿時は2020/03となり、日時経過によっては環境が異なる可能性がある事をご留意下さい

ご参考まで

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0