windows xp系統
php環境為phpstudy Apache+php5.4
composer版本為1.0-dev (c557715669ba8dd2dc6c63859f919351a4aa5e2f)
使用命令 composer global require "laravel/installer=~1.1"
報錯:PHP Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Vers
ion\VersionParser::parseLinks() in C:\Documents and Settings\Administrator\Appli
cation Data\Composer\vendor\fxp\composer-asset-plugin\Repository\VcsPackageFilte
r.php on line 272
Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\V
ersionParser::parseLinks() in C:\Documents and Settings\Administrator\Applicatio
n Data\Composer\vendor\fxp\composer-asset-plugin\Repository\VcsPackageFilter.php
on line 272
請問如何解決,另外,系統內容PATH中以添加C:\Documents and Settings\Administrator\Application Data\Composer\vendor\fxp和C:\Documents and Settings\Administrator\Application Data\Composer\vendor\bin
回複內容:
windows xp系統
php環境為phpstudy Apache+php5.4
composer版本為1.0-dev (c557715669ba8dd2dc6c63859f919351a4aa5e2f)
使用命令 composer global require "laravel/installer=~1.1"
報錯:PHP Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Vers
ion\VersionParser::parseLinks() in C:\Documents and Settings\Administrator\Appli
cation Data\Composer\vendor\fxp\composer-asset-plugin\Repository\VcsPackageFilte
r.php on line 272
Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\V
ersionParser::parseLinks() in C:\Documents and Settings\Administrator\Applicatio
n Data\Composer\vendor\fxp\composer-asset-plugin\Repository\VcsPackageFilter.php
on line 272
請問如何解決,另外,系統內容PATH中以添加C:\Documents and Settings\Administrator\Application Data\Composer\vendor\fxp和C:\Documents and Settings\Administrator\Application Data\Composer\vendor\bin
composer重裝吧,用stable的版本,windows最好用https://getcomposer.org/Composer-Setup.exe,不用設定環境變數之類的,還整合在exploer
這裡有現成的最新版,下載就可以用。
https://github.com/rainwsy/Laravel5
composer建議用梯子安裝吧.