Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the readme.md instructions say: Add the repositories from the module's composer.json to the root json.
But I cant find the repositories section in code, in composer.json.
Could you explain more the code to be copied?
I'm certainly very new at handling json and composer :(
posdata:
I try to find a more general page about adding code to json file and only find this:
https://www.drupal.org/node/2404989
But isnt a lot of instructions there.
Comments
Comment #2
koffer CreditAttribution: koffer commentedI think I found the solution, just copy
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
},
"leaflet": {
"type": "package",
"package": {
"name": "leaflet/leaflet",
"version": "v0.7.7",
"type": "drupal-library",
"dist": {
"url": "https://github.com/Leaflet/Leaflet/archive/v0.7.7.zip",
"type": "zip"
}
}
}
}
To composer.json and download almost everything look like php_ffmpeg feal.
Everything download and end with a: unexpected error after install Parade.
But I found how to install dependencies anyway.
Comment #3
gpap CreditAttribution: gpap at Brainsum for Tieto commentedThanks for the feedback! Composer.json added with Leaflet.
Comment #4
gpap CreditAttribution: gpap at Brainsum for Tieto commentedComment #5
mhavelant CreditAttribution: mhavelant commentedComment #6
balagan CreditAttribution: balagan at Brainsum commented