簡體   English   中英

您的要求無法解決為一組可安裝的軟件包。 用於運行應用程序

[英]Your requirements could not be resolved to an installable set of packages. for running an application

我嘗試運行項目,但按照開發人員的說明運行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擴展-安裝並啟用它,它將起作用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM