Why do I get a laravel error while creating a new project?

后端 未结 11 2230

When I type laravel new blog I get the following error.

In RequestException.php line 113:

Server error: GET http://cabinet.laravel.com/latest.zi

11条回答
  •  甜味超标
    2021-02-01 02:09

    The latest Laravel installer will be essential to your workflow which includes support for Jetstream.

    The new version also uses composer create-project behind the scenes instead of downloading an archive from Laravel’s build servers.

    Update the latest version of laravel/installer with any of the following approaches:

    1. Update to ^4.0 via composer require
    composer global require "laravel/installer:^4.0"
    
    1. Uninstall and Re-install the package via Composer
    composer global remove laravel/installer
    composer global require laravel/installer
    
    1. Update the global composer.json file and run composer update
    {
        "require": {
            "laravel/installer": "^4.0",
        }  }
    
    composer global update
    

    Verifying the Update

    laravel --version
    

    Click here to know more about updating the Laravel Installer

提交回复
热议问题