【发布时间】:2019-06-29 19:13:51
【问题描述】:
我无法在 Visual Studio Code 中将终端与 Drush 一起使用。每次我运行 drush 或 composer 我都会收到以下错误:
drush:术语“drush”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。检查名称的拼写,或 如果包含路径,请验证路径是否正确并重试。 在行:1 字符:1 + 匆忙 + ~~~~~ + CategoryInfo : ObjectNotFound: (drush:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
我有 Windows 10,我正在本地开发 Drupal 8。我已经安装了 drush 和 composer。他们使用我的本地 Windows 命令行工作正常,但在 Visual Studio Code 终端上却没有。我之所以想使用VSC终端是因为更方便。
【问题讨论】:
-
您是否尝试过遵循本指南drupal.org/docs/develop/development-tools/…
-
谢谢@pwaterz。我去看看。
标签: command-line visual-studio-code windows-10 drupal-8 drush