关于thinkphp5.0版本安装 topthink/think-mongo问题
关于安装报错问题
D:\phpstudy_pro\WWW\one>composer require topthink/think-mongo:1.*
The "topthink/think-installer" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.3.0"). You may need to run composer update with the "--no-p
lugins" option.
./composer.json has been updated
The "topthink/think-installer" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.3.0"). You may need to run composer update with the "--no-p
lugins" option.
Running composer update topthink/think-mongo
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- topthink/think-installer v1.0.12 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.3.0] but it does not match the constraint.
- topthink/framework v5.0.23 requires topthink/think-installer ~1.0 -> satisfiable by topthink/think-installer[v1.0.12].
- topthink/framework is locked to version v5.0.23 and an update of this package was not requested.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
composer update --no-plugins
composer require topthink/think-mongo=1.*
成功安装 topthink/think-mongo
composer require topthink/think-mongo=1.*
./composer.json has been updated
Running composer update topthink/think-mongo
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
- Locking topthink/think-mongo (v1.8.5)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Downloading topthink/think-mongo (v1.8.5)
- Installing topthink/think-mongo (v1.8.5): Extracting archive