Getting error while installing laravel installer in window 10

后端 未结 5 916
面向向阳花
面向向阳花 2021-02-08 08:27

I am using Windows 10 and composer is installed. When I try to install laravel installer globally using this command:

composer global r         


        
5条回答
  •  野的像风
    2021-02-08 09:27

    The following steps will fix most "packages.json file could not be downloaded" issue with Composer:

    1. Verify your firewall setting. Disable Firewall for starters
    2. Enable PHP OpenSSL Extension
    3. Enable PHP allow_url_fopen directive

    Note: Make sure you are working with the right PHP version and Environment (apache, CLI, etc.) when you modify the php.ini file.

提交回复
热议问题