Composer loading from cache

前端 未结 9 1288
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-02 04:54

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 the

相关标签:
9条回答
  • 2021-02-02 05:40

    On Window, I see the composer cache file located in
    C:\Users\{your_user}\AppData\Local\Composer\files

    It stores ZIP files. The below image has 2 Zip files because I have downloaded 2 versions of monolog (1.0.1 and 1.0.2)

    To remove the cache, simply delete the Zip file or folder.

    0 讨论(0)
  • 2021-02-02 05:41

    If you want to clear all packages cache, please try following:

    $ composer clearcache
    

    Or to just clear one or a few packages:

    $ composer clearcache packagename1 packagename2 ...
    

    You can also use clear-cache which is an alias for clearcache.

    Source : https://blog.liplex.de/clear-composer-cache/

    0 讨论(0)
  • 2021-02-02 05:47

    run the following command

    rm -rf ~/.composer/cache*
    

    if Permission denied add sudo

    0 讨论(0)
提交回复
热议问题