For reference, how to install the module through composer:
1. Add sachinchoolur/lightgallery as a repository in your composer.json
Should be added to the list of repositories like this:
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "package",
"package": {
"name": "sachinchoolur/lightgallery",
"type": "drupal-library",
"version": "1.2.21",
"dist": {
"url": "https://github.com/sachinchoolur/lightGallery/archive/1.2.21.zip",
"type": "zip"
}
}
}
],
2 Get the library
composer require sachinchoolur/lightgallery
3. Get the Drupal module
composer require drupal/lightgallery