windows下用composer安装laravel出错

WBOY
Libérer: 2016-06-06 20:25:49
original
1461 Les gens l'ont consulté

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

Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal