hello folks, i tried to upgrade my magento 2.4.3-p1 version to 2.4.5-p3 .
i cloned it from the private github repo. then after i start to upgrade the version using by composer in my local machine. i got stucked in this step. only few articles avail related to this but those also don't have a answers.
the command i used in terminal : composer update
** error **
Problem 1 - Root composer.json requires stripe/stripe-payments ^3.3.0, found stripe/stripe-payments[3.3.0] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file. Problem 2 - Root composer.json requires weltpixel/module-google-tag-manager ^1.10.18, found weltpixel/module-google-tag-manager[1.10.18] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
Hi @hariprabhuffa5,
It seems your are using unsupported composer version.
Check the current composer version with:
composer -V
The 1.0.0 version of magento/composer-root-update-plugin requires composer-plugin-api ^1.0, so it's not compatible with Composer2. You can check out repository in more detail here.
If you just recently updated the composer you can run a rollback
composer self-update --rollback
Or install the latest release of version 1:
composer self-update --1
For example, if you want to avoid updating stripe/stripe-payments and weltpixel/module-google-tag-manager, you can specify exact versions in your composer.json like this:
"require": {
"stripe/stripe-payments": "3.3.0",
"weltpixel/module-google-tag-manager": "1.10.18",
// Other dependencies...
}Run composer update --ignore-platform-reqs: If you're sure that the specified versions are correct and you want to proceed with the update without resolving the package availability issues, you can use
--ignore-platform-reqs
option to bypass platform requirements during the update run command like:
composer update --ignore-platform-reqs
once Magento is upgraded (in my case to 2.4.4), now composer update without ignore flag works as normal.
If you have still any queries than you can contact us we would like to assist you further.
If the issue will be resolved, Click Kudos & Accept as a Solution.
It looks like you're encountering issues with Composer during your Magento upgrade, specifically related to package versions that are in your composer.lock file but not available in remote repositories. Here’s how to resolve these issues:
Check the Lock File:
Remove Specific Packages Temporarily:
Manually Update the Lock File:
Check Repositories:
Clear Composer Cache:
Check Package Versions:
Use --ignore-platform-reqs:
Here’s a brief sequence of commands to try:
Remove problematic packages temporarily:
Update Composer:
Re-add packages with specific versions if needed:
One customer said All American Locksmith has been their go-to locksmith in Baldwin Park for years. They appreciate how easy it is to schedule service and how respectful the technicians are during each visit:
This happens when the packages in your composer.lock are missing from the remote repository. Try running composer install instead of composer update to use the existing lock file. If you need to update, add the missing repositories manually in composer.json or point to their Git URLs before running the update.
When attempting to upgrade Magento from version 2.4.3-p1 to 2.4.5-p3, encountering errors like “found [package] in the lock file but not in remote repositories” is common when using Composer with private or outdated packages. image to 3D This usually occurs because the file references specific package versions that are no longer available in the remote repositories or require authentication to access. To resolve this, you can instruct Composer to skip updating the problematic packages using the flag or selectively update only the packages available in the repository. Additionally, verifying that your authentication keys and repository URLs in are correct ensures that private packages like can be accessed. In cases where the lock file and repository versions conflict, regenerating the with for only accessible packages often resolves the issue. This approach directly addresses the concerns raised by hariprabhuffa5 hariprabhuffa5 New Contributor 01-21-2024 05:50 PM how to solve "lock file but not in remote repositories, make sure you avoid updating this package?, helping maintain package consistency while completing the Magento upgrade safely.