无法将您的要求解析为一组可安装的程序包.用于运行应用程序



我试图运行这个项目,但由于开发人员所说的运行composer install而出现了后续错误

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Installation request for laravel/framework v5.0.4 -> satisfiable by laravel/framework[v5.0.4].
    - laravel/framework v5.0.4 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
  Problem 2
    - laravel/framework v5.0.4 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - laracasts/flash 1.3.3 requires illuminate/support ~5.0 -> satisfiable by laravel/framework[v5.0.4].
    - Installation request for laracasts/flash 1.3.3 -> satisfiable by laracasts/flash[1.3.3].

composer.json文件:

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "laravel/framework": "5.0.*",
        "doctrine/dbal": "~2.5",
        "illuminate/html": "~5.0",
        "laracasts/flash": "~1.3"
    },
    "require-dev": {
        "phpunit/phpunit": "~4.0",
        "phpspec/phpspec": "~2.1"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-create-project-cmd": [
            "php -r "copy('.env.example', '.env');"",
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}

似乎这个项目中使用的Laravel版本是dev。你能告诉我如何运行这个项目吗?我对安装一个新的Laravel没有问题。

PHP缺少mcrypt扩展-安装并启用它,它就会工作。

相关内容

  • 没有找到相关文章

最新更新