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

后端 未结 11 2086

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:15

    If you use laravel homestead, maybe you should update the box itself.

    Dont forget to backup your databases.

    From the directory where Homestead is installed, run the update command:

    vagrant box update
    vagrant destroy
    vagrant up
    

    For a more detailed description, see: How to update your Laravel Homestead Box

    0 讨论(0)
  • 2021-02-01 02:17

    Do this:

    composer create-project laravel/laravel example-app
    

    if the following fails:

    composer global remove laravel/installer 
    composer global require laravel/installer
    
    0 讨论(0)
  • 2021-02-01 02:24

    Updating does not work. Reinstalling do now.

    composer global remove laravel/installer 
    composer global require laravel/installer
    
    0 讨论(0)
  • 2021-02-01 02:25

    The workaround of this problem is getting latest version of Laravel Installer as per New Laravel Installer via composer global require "laravel/installer:^4.0"

    verify the version using $ laravel -v It should return "Laravel Installer 4.1.0"

    0 讨论(0)
  • 2021-02-01 02:27

    Check your PHP version:

    php --version
    

    It has to be >=7.3. If it isn't you have to upgrade your PHP version.

    You can download the latest stable version here

    0 讨论(0)
提交回复
热议问题