The error content is as follows:
Your requirements could not being resolved to an installable set of packages.
Problem 1
-Yiisoft/yii2 2.0.x-dev requires bower-asset/jquery.inputmask ~3.2.2-No
Matching package found.
-Yiisoft/yii2 Dev-master requires bower-asset/jquery.inputmask ~3.2.2-No
Matching package found.
-Yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.* @stable | 2.1.* @stable
| 1.11.* @stable-No matching package found.
-Yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.* @stable | 1.11.* @stabl
e-No matching package found.
-Yiisoft/yii2 2.0.5 requires bower-asset/jquery 2.1.* @stable | 1.11.* @stabl
e-No matching package found.
-Installation request for Yiisoft/yii2 >=2.0.5, satisfiable by Yiisoft/yi
i2[2.0.5, 2.0.6, 2.0.7, Dev-master, 2.0.x-dev].
Potential causes:
-A typo in the package name
-The package isn't available in a stable-enough version according to your min
Imum-stability setting
See Ails.
Read n problems.
There are two ways to solve this problem:
One
Change Composer.json configuration: "minimum-stability": "Stable", second, replacement version: replace the dev version with the stable version
According to the above two methods or error, I tried again, the method is as follows: 1, first update composer execution composer global require "fxp/composer-asset-plugin:~1.1" 2, and then update the following process requires a Tok from GitHub En d:\qampp\htdocs\yii2\yii2basic>composer Update
Loading Composer repositories with the package information
Updating dependencies (including Require-dev)
Reading Bower.json of Bower-asset/jquery.inputmask (3.1.34)
Could not fetch Https://api.github.com/repos/RobinHerbots/jquery.inputmask/commi
ts/f48d10463039a23469e65cc4b5c0b4409e8fb596, please create a GitHub OAuth token
To go through the API rate limit
Head to "Here is a URL to get tokens"
To retrieve a token. It'll be stored in "c:/users/administrator/appdata/roamin
G/composer/auth.json "For the future use by Composer.
Token (Hidden):
Token stored successfully.
-Installing Yiisoft/yii2-composer (2.0.4)
downloading:100%
-Installing Ezyang/htmlpurifier (v4.6.0)
downloading:100%
-Installing Swiftmailer/swiftmailer (v5.4.1)
downloading:100%
-Installing Bower-asset/jquery (2.2.3)
downloading:100%
-Installing Bower-asset/yii2-pjax (v2.0.6)
downloading:100%
-Installing Bower-asset/punycode (v1.3.2)
downloading:100%
-Installing Bower-asset/jquery.inputmask (3.2.7)
downloading:100%
-Installing Cebe/markdown (1.1.0)
downloading:100%
-Installing YIISOFT/YII2 (2.0.7)
downloading:100%
-Installing Yiisoft/yii2-swiftmailer (2.0.5)
downloading:100%
-Installing yiisoft/yii2-codeception (2.0.5)
downloading:100%
-Installing Bower-asset/bootstrap (v3.3.5)
downloading:100%
-Installing Yiisoft/yii2-bootstrap (2.0.6)
downloading:100%
-Installing Yiisoft/yii2-debug (2.0.6)
downloading:100%
-Installing Bower-asset/typeahead.js (v0.11.1)
downloading:100%
-Installing Phpspec/php-diff (v1.1.0)
downloading:100%
-Installing yiisoft/yii2-gii (2.0.5)
downloading:100%
-Installing Fzaninotto/faker (v1.5.0)
downloading:100%
-Installing Yiisoft/yii2-faker (2.0.3)
downloading:100%
Fzaninotto/faker suggests installing ext-intl (*)
Writing Lock File
Generating autoload files
YII2 Installation and update error