windows下用composer安装laravel出错

WBOY
發布: 2016-06-06 20:25:49
原創
1461 人瀏覽過

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建议用梯子安装吧.

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板