Debug:Drupal\Core\Session\AccountInterface' not found

問題描述

在安裝完drupal 8 後遠程登錄上去測試drush命令報以上錯誤。
問題產生的原因是因爲drush版本的問題,drush 6及以下版本與最新的drupal 8 可能不兼容,需要通過composer這一php包管理器安裝。


安裝流程

. First install Composer globally
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

2 . Now add Composer's directory to your path by editing your .bash_profile or .zshrc.
$ export PATH="$HOME/.composer/vendor/bin:$PATH"

3 . Reload your terminal or just re-source the configuration you just added.
$ source $HOME/.bashrc

4 . Now that you have Composer working, you can install Drush from the latest HEAD.
$ composer global require drush/drush:dev-master
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章