-1. Add the proper repository to your composer.json file
- {
- "type": "package",
- "package": {
- "name": "drupal-superfish/superfish",
- "version": "2.0",
- "type": "drupal-library",
- "dist": {
- "url": "https://github.com/mehrpadin/Superfish-for-Drupal/archive/2.x.zip",
- "type": "zip"
+0. You can skip this step if you use the popular
+ https://github.com/drupal-composer/drupal-project.
+ Otherwise check that your composer.json file has directives to install
+ libraries in the libraries directory like this:
+
+ "require": {
+ "composer/installers": "^1.0",
+ },
+ "extra": {
+ "installer-paths": {
+ "web/libraries/{$name}": ["type:drupal-library"]