Error when php project executes composer install

Error message:

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

Problem 1
- doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.22) does not satisfy that requirement.
- doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.22) does not satisfy that requirement.
- Installation request for doctrine/instantiator 1.1.0 -> satisfiable by doctrine/instantiator[1.1.0].

 

Solution:

Delete the composer.lock file and re-execute composer install, so that the composer.lock file can be regenerated

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324782391&siteId=291194637