There is no problem not worth solving, and no technology not worth learning!
When using Composer to upgrade from Yii 2.0.x, an error is reported:[ErrorException]Undefined variable: The analysis solution of nameMatchesRequiredPackage
1. When using Composer to upgrade from Yii 2.0.x, an error is reported:[ErrorException]undefined variable: nameMatchesRequiredPackage, as shown in Figure 1
Figure 1
2. Update 3 packages, first update the first 2, no errors are reported, and then update the third one, the error is reported, the search dependency package in the current project Bower-asset/jQuery.inputMask, does not exist, as shown in Figure 2
Figure 2
4. In GitHub Check the submission log of this file, open the URL: https://github.com/yiisoft/yii2/commit/858e8015731 DA1AF978AF5E88EB495F3061FA120#DIFF-59858BCA2A40C010F385EAA7B6F5137F , as shown in Figure 3
Figure 3
5. When using Composer to upgrade from Yii 2.0.x, adjust the command, the bower-asset/jquery.inputMask is changed to Bower-asset/inputMask, the update is successful, no errors are reported, as shown in Figure 4
Figure 4
PS E:\wwwroot\github-shuijingwan-yii2-app-advanced> composer update yiisoft/yii2 yiisoft/yii2-composer bower-asset/input
mask
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
Leave a Reply