简体   繁体   中英

cannot install collection in laravel 5.8

I am not able to install collection in laravel 5.8 when I use the command:

 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"

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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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