简体   繁体   English

Laravel 5.8中的laravelcollective / html软件包安装问题

[英]laravelcollective/html package installation issue in Laravel 5.8

I'm learning Laravel 5 and I want to install laravelcollective/html in Laravel 5.8. 我正在学习Laravel 5,我想在Laravel 5.8中安装laravelcollective / html。 I've found (here and somewhere else) couple of ways to do that. 我发现了(在这里和其他地方)几种方法。 But, I've tried them with no success. 但是,我没有尝试过它们。 I'm using XAMPP 3.2.2 as local server on Windows 10. 我将XAMPP 3.2.2用作Windows 10上的本地服务器。

Solutions I've tried and what I got. 我尝试过的解决方案以及得到的解决方案。

Solution 1 解决方案1

First, I've added this line 首先,我添加了这一行

"laravelcollective/html": "5.8.*" 

to my composer.json's require array, save it. 到我的composer.json的require数组,保存它。 And, in my project directory, I ran the command 并且,在我的项目目录中,我运行了命令

    composer update

Result 1 结果1

PS C:\xampp\htdocs\mylaravel> composer update
    Loading composer repositories with package information
    Updating dependencies (including require-dev) 

Above is a copy and paste of my terminal. 上面是我的终端机的副本和粘贴。 The process stops at that level. 该过程在该级别停止。

Solution 2 解决方案2

I've tried to install laravelcollective/html package by running: 我试图通过运行安装laravelcollective / html包:

    composer require "laravelcollective/html:5.8.*"

In this, I've tried some other arguments with composer require , like: 在此,我用作曲家require尝试了其他一些参数,例如:

composer require 'laravelcollective/html:5.8.*' 
composer require "laravelcollective/html:5.8.*" 
composer require "laravelcollective/html:5.8.0" 
composer require 'laravelcollective/html:5.8.0' 
composer require 'laravelcollective/html:^5.8.0' 
composer require "laravelcollective/html:^5.8.0" 

Even an argument whithout indicating the version: 甚至没有说明版本的参数:

composer require  'laravelcollective/html'

All of them give the same result 他们都给出相同的结果

Result 2 结果2

PS C:\xampp\htdocs\mylaravel> composer require 'laravelcollective/html:^5.8.0'


 [Composer\Downloader\TransportException]
 The "https://packagist.org/p/provider-2019-04%241d52886260d9f0e30a70676feea97a605da410b08fd409cad3de1a04bb47c878.json" file could not be downloaded (HTTP
 /1.1 404 Not Found)

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

image of solution2 result solution2结果的图像

Any help will be appreciated 任何帮助将不胜感激

Try to add this version 尝试添加此版本

"laravelcollective/html": "^5.4.0"

Then perform 然后执行

composer update

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM