Composer does not install Calendar Module Hi I am having trouble migrating my local site to development (two seperate servers). I believe the reason being is because I can not install an unstable Calendar Module, which I have on my local but not on my development. In my development site I git pull successfully and checked the repo https://www.drupal.org/project/calendar/releases/8.x-1.x-dev was running. I did composer require 'drupal/calendar:1.x-dev'. I also have "minimum-stability": "dev" in my composer.json.

When I run drush cr I get:


  [error]  The "calendar" plugin does not exist.


So it seems that I do not have calendar module downloaded. I check my composer.json file and have 

"require": {
    "drupal/calendar": "1.x-dev"
},


but when I run

composer update


I get 

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
&gt; Drupal\Core\Composer\Composer::preAutoloadDump
&gt; Drupal\Core\Composer\Composer::ensureHtaccess


and nothing gets downloaded. Am I missing anything?

Any help or pointers would be helpful! Thanks in advance.
Is the module installing and working locally? I've had a similar issue with dev modules before. The problem is that they will ship with a .git directory and sometimes when I try to commit the module to my project's git repo it won't be committed because of the .git in the submodule. I bet if you navigate to the calendar directory on your server it will be empty.

A solution to this is to remove the .git directory from the submodule, e.g. /modules/contrib/calendar/.git before committing to your project's repo. If you've already committed, git will probably still try to ignore the directory after you remove the .git from the submodule, but you can remedy this by using git rm -r --cached modules/contrib/calendar (or whatever appropriate path). Then you can git add and git commit the submodule.