Php 编写器需要LarvelCollective html';不下载依赖性
请协助 我是laravel的新手,无法下载laravelcollective/html的依赖项。。。我使用的是laravel 5.5.13 我需要laravelcollective/html 然而,我面临以下问题Php 编写器需要LarvelCollective html';不下载依赖性,php,html,laravel-5,composer-php,laravelcollective,Php,Html,Laravel 5,Composer Php,Laravelcollective,请协助 我是laravel的新手,无法下载laravelcollective/html的依赖项。。。我使用的是laravel 5.5.13 我需要laravelcollective/html 然而,我面临以下问题 运行时:composer需要“laravelcollective/html:5.2.*” (与运行composer update时类似): 我决定使用AngularJS作为前端 请注意,此解决方案可能不适用于所有人,使用此解决方案,由于需要其他编写器要求,将来可能会出现问题,例如我需要
composer需要“laravelcollective/html:5.2.*”
我决定使用AngularJS作为前端
请注意,此解决方案可能不适用于所有人,使用此解决方案,由于需要其他编写器要求,将来可能会出现问题,例如我需要的身份验证依赖项。尝试运行
composer Required laravelcollective/html
,它将为您安装最新版本的laravelcollective软件包。那么您需要哪个版本的5.2.
或~5.3.@dev
?你不能同时拥有两者。这是作曲家的一个基本限制。。。如果您需要5.3,那么尝试安装“laravelcollective/html:5.2.*”
对我来说毫无意义。无论如何,您已经在composer.json
中安装了v5.3,所以只需composer安装它即可。我刚刚添加了一个图像,描述了运行composer安装时得到的结果。。。(在帖子**的第一行)**它说已成功生成包清单,但我无法在供应商文件夹中看到已安装的laravelcollective…如果您使用的是Laravel5.5,则此包也应使用版本5.5。。。。
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.*"
{
"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
}
}