This can mean that you're not running Drupal 8, but Drupal 7! Drupal Console only works in Drupal 8. drupal/console 1.0.0-rc15 requires drupal/console-core 1.0.0-rc15 -> satisfiable by drupal/console-core but these conflict with your requirements or minimum-stability. Installation request for drupal/console >=1.0-rc15 -> satisfiable by drupal/console. Your requirements could not be resolved Your requirements could not be resolved to an installable set of packages. This means you haven't edited the composer.bat file. See above.Ĭould not open input file "Could not open input file: composer.phar" This also means you have the wrong version of PHP. PHP Parse error "PHP Parse error: syntax error, unexpected '[' in C:\Users\Dave\Sites\devdesktop\d8\vendor\drupal\console\bin\drupal.php on line 14" These instructions all assume you use a command-line properly configured for Drupal, which you can get by clicking the little console button in Dev Desktop. You're using a different command-line entirely, for example one from Git. If you need to use other tools, run them in another window. Even running "drush" can cause this to happen! Open a new command-line and you should be fine.īecause of this, we recommend you reserve one command-line window just for Drupal Console. You ran another command that modified your command-line environment. Change the PHP version, and open a new command-line. You forgot to set the PHP version for your site in DevDesktop.This means you're using the wrong version of PHP. This package requires php >=5.5.9 but your PHP version (5.4.45) does not satisfy that requirement. This package requires PHP >=5.5.9 Problem 1 Please point us to a Gist containing the complete log of what happened at the command-line, so we can diagnose the problem, and update our instructions. If this still doesn't help, let us know! Email, or leave a comment on the blog post. To finish off the module all we have to do is add the routing file and the basic controller and we are all set.Did you have trouble following our instructions for getting Drupal Console running on Windows? Did something unexpectedly go wrong? Look for a section on this page corresponding to the command-line output you saw, and it might help! Now you have a module skeleton sitting in `modules/custom/hello_world`. From there, a wizard will take over and ask you for the rest of the details. Let’s make the Hello World module, but instead of preparing a module skeleton, we will use Drupal Console to do all of the grunt work for us! First we run `drupal generate:module` in our terminal. However, Drupal Console takes it a few steps further as it can also generate boilerplate code and also comes packaged with tool to help you convert Drupal 7 modules to work with Drupal 8. So, first things first, what is it? Drupal Console is a command line tool that can interact with a Drupal 8 installation - similar to the way Drush works with Drupal 7. It also comes with useful documentation so you can hit the ground running. Although I have not completely integrated it into my workflow, Drupal Console has a lot of features that will help make Drupal 8 development virtually painless. I recently stumbled upon this thing call Drupal Console - and I must say that I’m impressed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |