如官方 magento 2 升级指南中所述,我使用以下命令安装了 magento/composer-root-update-plugin:
composer require magento/composer-root-update-plugin ~2.0 --no-update
但是当我运行命令时
composer update
它给了我这个错误:
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires magento/composer-root-update-plugin, it could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
我怎么解决?