作曲家需要laravelcollective html'不下载依赖

时间:2017-09-28 11:33:20

标签: php html laravel-5 composer-php laravelcollective

Please see when When I run composer install请协助,

我是laravel的新手,我无法下载laravelcollective / html的依赖...我正在使用laravel 5.5.13

我想要laravelcollective / html

然而,我面临以下问题。

  1. 当我跑步时:composer require "laravelcollective/html:5.2.*"
  2. I get the below mentioned(类似我运行作曲家更新时):

    C:\Users\MALULEKE\Desktop\lara_proj\shops>composer require "laravelcollective/html:5.2.*"
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - The requested package laravelcollective/html could not be found in any version, there may be a typo in the package name.
    
    Potential causes:
     - A typo in the package name
     - The package is not available in a stable-enough version according to your minimum-stability setting
       see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
    
    Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
    
    Installation failed, reverting ./composer.json to its original content.
    
    C:\Users\MALULEKE\Desktop\lara_proj\shops>composer require "laravelcollective/html:5.2.*"
    

    下面是我的composer.json相对于我的项目的工作(不是来自作曲家/漫游,我甚至不确定我必须使用哪个,请帮忙)

    {
        "name": "laravel/laravel",
        "description": "The Laravel Framework.",
        "keywords": ["framework", "laravel"],
        "license": "MIT",
        "type": "project",
        "require": {
            "php": ">=7.0.0",
            "fideloper/proxy": "~3.3",
            "laravel/framework": "5.5.*@dev",
            "laravel/tinker": "~1.0",
            "laravelcollective/html":"~5.3.@dev"
    
        },
        "require-dev": {
            "filp/whoops": "~2.0",
            "fzaninotto/faker": "~1.4",
            "mockery/mockery": "0.9.*",
            "phpunit/phpunit": "~6.0"
        },
        "autoload": {
            "classmap": [
                "database/seeds",
                "database/factories"
            ],
            "psr-4": {
                "App\\": "app/"
            }
        },
        "autoload-dev": {
            "psr-4": {
                "Tests\\": "tests/"
            }
        },
        "extra": {
            "laravel": {
                "dont-discover": [
                ]
            }
        },
        "scripts": {
            "post-root-package-install": [
                "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
            ],
            "post-create-project-cmd": [
                "@php artisan key:generate"
            ],
            "post-autoload-dump": [
                "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
                "@php artisan package:discover"
            ]
        },
        "config": {
            "preferred-install": "dist",
            "sort-packages": true,
            "optimize-autoloader": true
    
        }
    }
    

2 个答案:

答案 0 :(得分:0)

我决定使用AngularJS作为我的前端。

请注意,此解决方案可能不适合所有人,并且使用此解决方案,由于需要其他编写器要求(例如我需要的身份验证依赖性),将来可能会出现问题。

答案 1 :(得分:0)

尝试运行composer require laravelcollective/html,它将为您安装最新版本的LaravelCollective软件包。