hechoendrupal / drupal-console

The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.
http://drupalconsole.com
GNU General Public License v2.0
940 stars 560 forks source link

Windows 10 Git bash tar error #3211

Closed forethoughtde closed 4 years ago

forethoughtde commented 7 years ago

Windows Git bash tar error

The issue title should comply with the following structure:

Summary: Could not able to install Drupal 8 from Drupal Console in Windows 10 OS.

Issue Area:

How to reproduce

Install the Drupal console from composer by running the following command in Git bash in Windows 10 composer global require drupal/console:1.0.*@dev Then run the following to copy the configuration files to home directory drupal init --override Then run the command to install the Drupal 8 drupal chain --file=.console\chain/quick-start.yml Observe the error message.

 [ERROR] Unable to execute the following command "C:\Program Files\Git\usr\bin\tar.EXE" "--extract"
         "--file=C:\Users\KARTHI~1\AppData\Local\Temp/drupal.tar.gz" "--overwrite-dir" "--overwrite" "--gzip"
         "--directory" "C:\Users\karthikeyan/" {output: /usr/bin/tar: '--overwrite' cannot be used with
         '--overwrite-dir'
Try '/usr/bin/tar --help' or '/usr/bin/tar --usage' for more information.
}
 Drupal "8.2.6" was downloaded in directory "drupal-8.2.6"
 [ERROR] An error occurred while renaming directory as "drupal8.dev"
parijke commented 7 years ago

I have got the same... Ubuntu 17.04 Drupal Console (0.11.2)

command:

drupal site:new d8.dev 8.3.2

 [ERROR] Unable to execute the following command '/bin/tar' '--extract'         
 '--file=/tmp/drupal.tar.gz' '--overwrite-dir' '--overwrite' '--gzip'           
 '--directory' '/home/paul/www/' {output: /bin/tar: optie '--overwrite' gaat    
 niet samen met '--overwrite-dir'                                               
 Typ '/bin/tar --help' of '/bin/tar --usage' voor meer informatie.              
 }                                                                                                                                                              

 Drupal 8.3.2 was downloaded in directory drupal-8.3.2                          

 [ERROR] An error occurred while renaming directory as d8.dev  ```
nequeteme commented 4 years ago

I tested and it works, @forethoughtde could you please use Cmder https://cmder.net (Console emulator for Windows), it have the command tar

image