composer的plugin升級後,再使用composer會報錯,好比直接在命令行中只輸入composer會報錯:php
Deprecation Notice: The Composer\Package\LinkConstraint\MultiConstraint class is deprecated, use Composer\Semver\Constraint\MultiConstraint instead. in phar:///usr/local/bin/composer/src/Composer/Package/LinkConstraint/MultiConstraint.php:17composer
Deprecation Notice: The Composer\Package\LinkConstraint\LinkConstraintInterface interface is deprecated, use Composer\Semver\Constraint\ConstraintInterface instead. in phar:///usr/local/bin/composer/src/Composer/Package/LinkConstraint/LinkConstraintInterface.php:17ide
直接上報錯的圖:spa
或者再升級一下是這樣的:命令行
在網上搜了許多解決辦法,但都不成功,直到……blog
重點來了,從上面報錯的緣由中能夠看到,上面提到了讓你將目錄切換到C:/Users/***/AppData/Roaming/Composer ,上面提到了有文件重複了,因此接下來要作的就是將C:/Users/***/AppData/Roaming/Composer/vendor下面的fxp文件件直接刪掉。從新打開cmd,再檢查一下,看composer就能夠用啦。get