Can't install laravel installer via composer

前端 未结 14 1996
栀梦
栀梦 2020-11-27 13:04

I\'m trying to install laravel installer with the composer on my Ubuntu PC, but I get this error during the installation. `Your requirements could not be resolved to an inst

相关标签:
14条回答
  • 2020-11-27 13:27

    FOR MAC USERS with CATALINA

    First, install homebrew. Then, say

    brew install php@7.3
    brew link php@7.3
    

    restart the console and run the laravel installer

    0 讨论(0)
  • 2020-11-27 13:29

    It says that it requires zip extension

    laravel/installer v1.4.0 requires ext-zip...

    Install using (to install the default version):

    sudo apt install php-zip
    

    Or, if you're running a specific version of PHP:

    # For php v7.0
    sudo apt-get install php7.0-zip
    
    # For php v7.1
    sudo apt-get install php7.1-zip
    
    # For php v7.2
    sudo apt-get install php7.2-zip
    
    # For php v7.3
    sudo apt-get install php7.3-zip
    
    # For php v7.4
    sudo apt-get install php7.4-zip
    
    0 讨论(0)
提交回复
热议问题