PHP Composer Cache Clear - TechvBlogs

PHP Composer Cache Clear

Learn how to clear composer cache when package seems don't want to update.


Smit Pipaliya - Author - TechvBlogs
Smit Pipaliya
 

2 years ago

TechvBlogs - Google News

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.

Comments (0)

Comment


Note: All Input Fields are required.