【问题标题】:Drupal Drush master-branch in Windows 10 home requires composer - What and why?Windows 10 家庭中的 Drupal Drush 主分支需要作曲家 - 什么以及为什么?
【发布时间】:2015-12-03 00:12:03
【问题描述】:

在我的 Windows 10 家庭安装 Drush(Drupal 8 的主分支)并使用所有需要的值设置 PATH EV 后,我运行了 drush cc all... 然后我得到了那个错误:

C:\wamp\www\benia>drush cc all 加载失败 c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.4.0rc1-7.0-vc14-x86_64.dll

无法加载 autoload.php。

Drush 现在需要 Composer 才能安装其依赖项和自动加载类。请参阅 README.md。

我还不是程序员,不知道为什么 Drush 需要 Composer 软件,以及如何在 Windows 10 家庭版上安装它以使用 Drush。有人可以为像我这样的外行写一个详细的步骤答案吗,如何解决?

【问题讨论】:

    标签: composer-php windows-10 drush drupal-8


    【解决方案1】:

    为 Composer 运行 Windows 安装程序应该可以满足您的所有需求。你可以找到它here。如果您更喜欢使用命令行,Composer 网站也有相关说明。

    示例,使用 cUrl:

    curl -sS https://getcomposer.org/installer | php
    

    使用 PHP:

    php -r "readfile('https://getcomposer.org/installer');" | php
    

    【讨论】:

    • 嘿伙计,我已经在默认课程中通过安装程序安装了它(即没有“Shell 菜单”的 I.E)。完成安装后,我进入 cmd,输入 cd/cd wamp/www/benia,导航后输入 drush cc all,但关于 composer 安装的原始错误似乎仍然存在。我应该卸载然后使用“Shell menus”重新安装吗?或者,我执行的安装和 Drush 之间可能只是某种我尚未执行的操作?
    • 确保您安装它的目录实际上在 PATH 变量中。然后确保composer.batcomposer.phar 在安装位置。如果不按照manual install 的步骤操作。
    猜你喜欢
    • 1970-01-01
    • 2012-05-16
    • 2016-12-12
    • 2013-12-31
    • 2020-11-09
    • 2021-10-10
    • 2020-01-26
    • 2018-12-29
    • 1970-01-01
    相关资源
    最近更新 更多