使用XAMPP在Windows 7上安装Laravel 4时出现问题

时间:2014-06-11 11:23:09

标签: laravel laravel-4

安装Composer后,我转到c:\xampp\htdocs并执行以下命令:

composer create-project laravel/laravel khandakhulu --prefer-dist

然后我收到以下错误:

[Composer\Repository\RepositorySecurityException] The contents of http://packagist.org/p/laravel/laravel$a996426ffd2d6fcd0d9a 2dfdd97171b28b3d196d34061f15d79ce67004b9c19d.json do not match its signatur e. This should indicate a man-in-the-middle attack. Try running composer ag ain and report this if you think it is a mistake.

1 个答案:

答案 0 :(得分:0)

基本上我们需要强制作曲家在composer.json中使用https存储库,正如我们从Laravel.io Forum知道的那样

但我们没有任何laravel项目的骨架。因此,请改用Laravel Installer。此全局安装在~/.composer/composer.json生成composer.json并修改为此

{
    "require": {
        "laravel/installer": "~1.1"
    },
    "repositories": {
        "packagist": { "url": "https://packagist.org", "type": "composer" }
    }
}

强制存储库URL后,首次安装Laravel Installer可能会出现相同的错误。最后,创建新的Laravel应用程序。

~/.composer/vendor/bin/laravel -v new justapp