Drupal 8 download specific module version composer






















Viewed 8k times. Improve this question. Smartsheet eng Smartsheet eng 4 4 silver badges 18 18 bronze badges. Add a comment. Active Oldest Votes. If you specify a branch, such as 1. Improve this answer. This doesn't work. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE. Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search.

I've started to use Drupal 8 and some modules requires some libraries. For example search api solr. When I'm installing these libraries via composer it downloads the libraries into directory of the module. I don't think that it's correct because contrib modules should be stored in clean state. Install Composer Manager , then you won't need to think about it:. Composer expects each project Drupal installation, in our case to have a single composer.

Composer Manager allows each contributed module to ship with its own composer. It then merges the requirements of all found modules into the consolidated composer. Composer manager which was used with Drupal 7 is obsolete for Drupal 8 and should not be used with it. The right way to work with composer for with Drupal 8 is described here. Sign up to join this community.

The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Where should I download libraries for modules through composer? I'll go ahead and install Pathauto using the command above.

In this case, to get the "recommended" release, we have to specify a version by typing something like this:. You'll notice the quotes around the package and version. While not required, they do ensure compatibility across all terminals and shells, some of which will have issues when the quotes are not used. When I press enter, we'll see in the command line output that the beta1 version was installed.

We can also take a look at the composer. Uninstalling a package via the command line is almost the same as installing, but we don't need to specify a version. So to uninstall Pathauto, we'd simply type:. Then, when I press enter, we can take a look at the composer.



0コメント

  • 1000 / 1000