composer require "phpoffice/phpexcel" --prefer-dist
For previous install that download .git, and committed to local repository (in which the folder that contains .git is not committed), re-run it as the flow below.
1. composer remove the package.
2. git commit (commit the removing)
3. composer require the package again, with –prefer-dist
4. git commit (commit the re-installed source)