1

I just install Drupal Console, then adding it to my pre-installed Drupal 8 with this into the drupal folder:

 php  ~/bin/composer.phar require drupal/console:~1.0 --prefer-dist --optimize-autoloader

as noticed.But I don't have all commands, like generate...seem console "module" is missing despite everything .

What can I do to fix this ?

thanks

EDIT: no console folder in core/lib/Drupal/Core as it seem to be done. EDIT2:

export GEM_PATH=/home/xxx/.gem/
export GEM_HOME=$GEM_PATH
export COMPOSER_PATH=/home/xxx/bin/composer/composer.phar
export COMPOSER_HOME=$COMPOSER_PATH

#export PATH=/home/xxx/.gem/bin:/home/xxx/drush:$PATH
export PATH=/home/xxx/.gem/bin:$PATH

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.composer/vendor/bin:$PATH"

alias drush='$HOME/bin/composer/composer.phar/vendor/drush/drush/drush'
6
  • Did you do drupal init – Kevin Mar 21 '17 at 16:04
  • You may need to add the path to the drupal binary in your $PATH variable. – Parag Mar 21 '17 at 17:36
  • @Kevin : I don't think so... – webmaster pf Mar 23 '17 at 9:06
  • @PMagunia: I didn't add it, how can I do that ? – webmaster pf Mar 23 '17 at 9:06
  • In your bash configuration file (it may be .bashrc) you can find something like this export PATH="$PATH:/usr/local/bin:/usr/bin:. Add the directory to the drupal console binary at the end of that list. You can separate values with a colon. – Parag Mar 24 '17 at 19:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.