安装git和验证git.drupalcode.org帐号以使用composer管理Drupal依赖

By 大伟哥 | 2021-03-30,周二, 13:27

新启用的Debian 10 系统,按照以往的操作方式使用 composer 安装 Drupal 时出错,错误信息是:

Failed: [RuntimeException] git was not found in your PATH, skipping source download

运行 apt install git 即可以安装 git 了。

现在再运行 composer 命令,会提示你输入你在 drupal 官网的用户名和密码,这样 composer 就可以继续运行下去了:

    Authentication required (git.drupalcode.org):
      Username: weibing82
      Password:

添加新评论

此字段内容将保密,不会被其他人看见。
  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
发布评论前,请通过下面的验证,以免被当作垃圾评论机器人屏蔽。
5 + 4 =
计算出这道简单的算术题并键入答案。例如、1+3,就输入 4。