简体   繁体   English

无法在 Laravel 5.8 中安装集合

[英]cannot install collection in laravel 5.8

I am not able to install collection in laravel 5.8 when I use the command:使用以下命令时,我无法在 laravel 5.8 中安装集合:

 composer require "laravelcollective/html":"^5.8.0"

I am getting the following error in my terminal:我的终端出现以下错误:

[UnexpectedValueException] [意外值异常]
Could not parse version constraint :5.8.0: Invalid version string ":5.8.0"无法解析版本约束:5.8.0:无效的版本字符串“:5.8.0”

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|--o
ptimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
composer require laravelcollective/html

直接使用它,它的工作 100% 它会自动获得 laravel 的版本。

尝试使用单引号安装: composer require 'laravelcollective/html:^5.8.0'

composer require "vendor-name/package-name:2.1.0"
composer require "laravelcollective/html:5.8.0"

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

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