i ran in a problem using composer for installing/uninstalling some dependencies in laravel which coming back after deleting them from composer.json
and deleting their vendor folder, i initially used dflydev's markdown package but now i wanted to change it to michelf's php-markdown, but i cant uninstall the old one since it comes back loaded from cache, which i checked at AppData\Roaming\Composer
and is empty, any clue on to why this is happening?
- Installing dflydev/markdown (dev-master dee1f7a) Loading from cache
the cache locations are: Windows: %LOCALAPPDATA%\Composer\files\vendor\packagename. Linux: ~/. composer/cache/files/vendor/packagename.
Make sure you have no problems with your setup by running the installer's checks via curl -sS https://getcomposer.org/installer | php -- --check . Try clearing Composer's cache by running composer clear-cache . Ensure you're installing vendors straight from your composer.
Composer update is very slow if you have a lot of dependencies/packages implemented. You should avoid variable versions and think about using a HHVM as server.
You can use the following command to clear the cache irrespective of the OS you are on:
php composer.phar clear-cache
or if composer is installed globally
composer clear-cache
Hope this helps
I think, you can run your composer
commands with --no-cache
option flag like
composer install --no-cache
Or
composer require <package-name> --no-cache
Or
composer update [<package-name>] --no-cache
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With