先上碼如下。
➜ ~ php /usr/local/bin/composer global require "fxp/composer-asset-plugin:~1.1.0"Changed current directory to /Users/mac/.composerPHP Fatal error: Call to undefined method Composer\Package\Version\VersionParser::parseLinks() in /Users/mac/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 270Fatal error: Call to undefined method Composer\Package\Version\VersionParser::parseLinks() in /Users/mac/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 270➜ ~ php /usr/local/bin/composer global require "fxp/composer-asset-plugin:~1.1.4-bata"Changed current directory to /Users/mac/.composerPHP Fatal error: Call to undefined method Composer\Package\Version\VersionParser::parseLinks() in /Users/mac/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 270Fatal error: Call to undefined method Composer\Package\Version\VersionParser::parseLinks() in /Users/mac/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 270
剛開始安裝composerAsset 1.0.0版本的時候沒問題,後安裝1.0.4-bata版本後成功後,我將composer進行了全域安裝,但是再執行這個就報上面的錯誤,搜尋了不少資料,但是貌似都沒用,刪除composer.phar後,重新全域安裝,還是沒有變化,錯誤如初,所以只能求指點。
回複內容:
先上碼如下。
➜ ~ php /usr/local/bin/composer global require "fxp/composer-asset-plugin:~1.1.0"Changed current directory to /Users/mac/.composerPHP Fatal error: Call to undefined method Composer\Package\Version\VersionParser::parseLinks() in /Users/mac/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 270Fatal error: Call to undefined method Composer\Package\Version\VersionParser::parseLinks() in /Users/mac/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 270➜ ~ php /usr/local/bin/composer global require "fxp/composer-asset-plugin:~1.1.4-bata"Changed current directory to /Users/mac/.composerPHP Fatal error: Call to undefined method Composer\Package\Version\VersionParser::parseLinks() in /Users/mac/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 270Fatal error: Call to undefined method Composer\Package\Version\VersionParser::parseLinks() in /Users/mac/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 270
剛開始安裝composerAsset 1.0.0版本的時候沒問題,後安裝1.0.4-bata版本後成功後,我將composer進行了全域安裝,但是再執行這個就報上面的錯誤,搜尋了不少資料,但是貌似都沒用,刪除composer.phar後,重新全域安裝,還是沒有變化,錯誤如初,所以只能求指點。
https://github.com/francoispluchino/composer-asset-plugin/pull/133
Linux : rm -rf ~/.composer/vendor/fxp
Windows : rm -r%APPDATA%\Composer\vendor\fxp
composer global require "fxp/composer-asset-plugin:~1.1.1"