【问题标题】:Drush module could not be downloaded无法下载 Drush 模块
【发布时间】:2017-12-11 14:10:07
【问题描述】:

我正在尝试做一个简单的drush dl drupal,但我收到了这个错误:

➜  drush dl drupal    
copy(/tmp/drush_tmp_1499421442_595f5b0280292/tar: Failed to set default locale): failed to open stream: No such file or directory filesystem.inc:268 [warning]
Project drupal (8.3.5) could not be downloaded to /xxx/test/drupal-8.3.5. [error]  

我尝试chmod -R 777 /tmp (/private/tmp) 但没有任何改变。如何解决?

【问题讨论】:

    标签: drupal drush


    【解决方案1】:

    通过在我的~/.bashrc 中添加这些行来修复

    export LANG=en_US.UTF-8
    export LANGUAGE=en_US.UTF-8
    export LC_COLLATE=C
    export LC_CTYPE=en_US.UTF-8
    

    然后source ~/.bashrc

    【讨论】:

    • 在 Windows 中?你知道我在哪里可以找到那个 bashrc 文件吗?
    猜你喜欢
    • 2018-06-22
    • 2019-08-29
    • 1970-01-01
    • 2021-10-10
    • 2011-03-08
    • 2017-05-25
    • 2020-03-15
    • 1970-01-01
    • 2021-01-11
    相关资源
    最近更新 更多