Drupal Drush make-解压和区分mime时间时出错
我已经在Windows 2008 R2 Enterprise上安装了Drush 5.8,包括除远程管理之外的所有选项 每当我运行Drupal Drush make-解压和区分mime时间时出错,drupal,drush,Drupal,Drush,我已经在Windows 2008 R2 Enterprise上安装了Drush 5.8,包括除远程管理之外的所有选项 每当我运行drush make时,我都会遇到一些错误,比如无法解压缩github归档文件,无法确定js文件的mime类型。这是我的make文件和输出。我不确定这里到底出了什么问题,我希望你能给我一些建议 制作文件: ; Drupal 7 core core = 7.x api = 2 projects[drupal][version] = 7 ; Libraries ; ---
drush make
时,我都会遇到一些错误,比如无法解压缩github归档文件,无法确定js文件的mime类型。这是我的make文件和输出。我不确定这里到底出了什么问题,我希望你能给我一些建议
制作文件:
; Drupal 7 core
core = 7.x
api = 2
projects[drupal][version] = 7
; Libraries
; --------
libraries[colorbox][download][type] = "get"
libraries[colorbox][download][url] = "https://github.com/jackmoore/colorbox/archive/1.4.8.zip"
libraries[colorbox][directory_name] = colorbox
libraries[colorbox][destination] = libraries
libraries[zepto][download][type] = "get"
libraries[zepto][download][url] = "http://zeptojs.com/zepto.min.js"
libraries[zepto][directory_name] = zepto
libraries[zepto][destination] = libraries
C:\Users\Administrator\Desktop\drush>drush make test.make testing
Could not locate drupal version 7, will try to download latest recommended or supported release. [warning]
drupal-7.21 downloaded. [ok]
colorbox downloaded from https://github.com/jackmoore/colorbox/archive/1.4.8.zip. [ok]
Unable to unzip C:\Users\ADMINI~1\AppData\Local\Temp\1/make_tmp_1364915473_515af511066a2/1.4.8.zip. [error]
zepto downloaded from http://zeptojs.com/zepto.min.js. [ok]
Unable to determine mime type for zepto.min.js. [error]
输出:
; Drupal 7 core
core = 7.x
api = 2
projects[drupal][version] = 7
; Libraries
; --------
libraries[colorbox][download][type] = "get"
libraries[colorbox][download][url] = "https://github.com/jackmoore/colorbox/archive/1.4.8.zip"
libraries[colorbox][directory_name] = colorbox
libraries[colorbox][destination] = libraries
libraries[zepto][download][type] = "get"
libraries[zepto][download][url] = "http://zeptojs.com/zepto.min.js"
libraries[zepto][directory_name] = zepto
libraries[zepto][destination] = libraries
C:\Users\Administrator\Desktop\drush>drush make test.make testing
Could not locate drupal version 7, will try to download latest recommended or supported release. [warning]
drupal-7.21 downloaded. [ok]
colorbox downloaded from https://github.com/jackmoore/colorbox/archive/1.4.8.zip. [ok]
Unable to unzip C:\Users\ADMINI~1\AppData\Local\Temp\1/make_tmp_1364915473_515af511066a2/1.4.8.zip. [error]
zepto downloaded from http://zeptojs.com/zepto.min.js. [ok]
Unable to determine mime type for zepto.min.js. [error]
经过一番努力终于找到了答案 使用Cygwin,我能够获得解压的副本,并将其放入程序文件(x86)\Drush\GnuWin32\bin目录(在我的PATH环境变量中)。这清除了列出的有关解压缩的错误
至于mime类型问题,我必须手动编辑includes/drush.inc,将
'.js'=>'application/javascript'
添加到$extension\u mimetype数组中。请参阅,以了解导致我这样做的讨论。如果有帮助,当我在详细模式下运行drush make时,我会看到“'curl'不被识别为内部或外部命令、可操作程序或批处理文件”,感谢您的回答,但我仍在与“解压缩”错误作斗争。在drupal.stackexchange,也许你能帮我解决这个问题?我们将不胜感激。