Я использую Ubuntu 18.04 и Laravel 5.4.Когда я обновляю Laravel, используя следующую команду:
composer update
Я получаю следующую ошибку:
[Composer \ Downloader \ TransportException]
The "https://packagist.org/packages.json" файл не может быть загружен: не удалось открыть поток: истекло время ожидания соединения
Это проблема SSL или что-то еще? Пожалуйста, сообщите мне.
Мой composer.json is
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.0.0",
"aws/aws-sdk-php": "~3.0",
"barryvdh/laravel-debugbar": "~2.4",
"barryvdh/laravel-snappy": "^0.4.0",
"doctrine/dbal": "^2.9",
"h4cc/wkhtmltoimage-amd64": "0.12.x",
"h4cc/wkhtmltopdf-amd64": "0.12.x",
"imal-h/pdf-box": "^1.2",
"intervention/image": "^2.4",
"khanamiryan/qrcode-detector-decoder": "^1.0",
"laracasts/Presenter": "^0.2.1",
"laravel/framework": "5.5.*",
"laravel/passport": "^4.0",
"laravel/socialite": "^3.0",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.4.0",
"league/flysystem-aws-s3-v3": "^1.0",
"league/fractal": "^0.17.0",
"maatwebsite/excel": "^2.1",
"predis/predis": "~1.0",
"pusher/pusher-php-server": "~2.6",
"ralouphie/mimey": "^1.0",
"vinkla/hashids": "3.1.0",
"zizaco/entrust": "dev-master"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~6.0",
"filp/whoops": "~2.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
},
"files": [
"app/Helpers/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"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
}
}