laravelcollective / HTML":" ^ 5.4.0"安装错误

时间:2017-10-13 06:15:41

标签: laravel-5.4

当我想从CLI安装我的laravel collective / HTML时,下面的消息显示了。任何人都可以帮我解决问题。

D:\xampp\htdocs\laravel>composer require "laravelcollective/html":"^5.4.0"
./composer.json has been updated
Loading composer repositories with package information
The "ht//packagist/org/packages.json" file could not be downloaded: failed to open stream: An attempt was made to access a socket in a way forbidden by its access permissions.
htt/packagist/org could not be fully loaded, package information was loaded from the local cache and may be out of date
Updating dependencies (including require-dev)
Installation failed, reverting ./composer.json to its original content.
  [Composer\Downloader\TransportException]
  The "http://packagist...org/p/laravelcollective/html%24b0b6819ee203fce431535a4549ba27ee52a7d77418c065c68b78577d198617e1.js
  on" file could not be downloaded: failed to open stream: An attempt was made to access a socket in a way forbidden by its access permissions.

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

1 个答案:

答案 0 :(得分:0)

撰写者需要'laravelcollective / html:^ 5.4.0'

为我工作。