10
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Laravel で「Server error: GET http://cabinet.laravel.com/latest.zip resulted in a 522 Origin Connection Time-out response:」エラー

Posted at

Laravel で久しぶりに laravel new blog のコマンドを打ってプロジェクトを作ろうとしたらタイトルのエラーが発生した。

laravel% laravel new blog
Crafting application...

In RequestException.php line 113:
                                                                               
  Server error: `GET http://cabinet.laravel.com/latest.zip` resulted in a `52  
  2 Origin Connection Time-out` response:                                      
  <html>                                                                       
  <head><title>522 Origin Connection Time-out</title></head>                   
  <body bgcolor="white">                                                       
  <center><h1>522 Origin Conne (truncated...)                                  
                                                                               

new [--dev] [--auth] [-f|--force] [--] [<name>]

#困ったらstackoverflow
Laravel News に載っている通りインストーラーアップデートしなさいって書いてありました。
https://stackoverflow.com/questions/64686037/why-do-i-get-a-laravel-error-while-creating-a-new-project

解決方法
composer global require "laravel/installer:^4.0"

上ので私は解決しました。それでダメならアンインストールとインストールとか試しなさいだそうです。

【詳細は下記参照】
https://laravel-news.com/updating-the-laravel-installer

10
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?