从缓存加载作曲家 [英] Composer loading from cache
问题描述
我在使用composer安装/卸载laravel中的某些依赖项时遇到了问题,这些依赖项是从 composer.json
中删除它们并删除其供应商文件夹后返回的,我最初使用dflydev的markdown包,但现在我想将其更改为michelf的php-markdown,但由于旧版本从缓存中重新加载,因此我无法卸载旧版本,我在 AppData\Roaming\Composer中进行了检查
并且为空,为什么会发生这种情况?
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
推荐答案
您可以使用以下命令来清除缓存,而不管您使用的是哪个操作系统:
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
希望这会有所帮助
这篇关于从缓存加载作曲家的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!