PHP Composer Cache Clear

  Smit Pipaliya   Laravel   3 months ago
PHP Composer Cache Clear - TechvBlogs

When working with your repositories or with just updated packages, the composer still has something in the cache and doesn't want to edit.

To clear the composer cache, Run the following:

composer clearcache

For an alias (have dashed)

composer clear-cache

Below is the message that's usually displayed when there's an issue with updating the package.

"The requested package vendor/package could not be found in any version, there may be a typo in the package name"

Now, run the composer install or composer update command to update your packages:

composer install

or

composer update

For an alternative, Run the install with the no-cache flag:

composer install --no-cache

Thank you for reading this blog.

Read Also:  How to Install React in Laravel 8

If you have any queries or doubts about this topic please feel free to  contact us . We will try to reach you.

Tags:
PHP Laravel

Smit Pipaliya - Author - TechvBlogs
Smit Pipaliya
Laravel Developer
Advertise Here