Getting error while installing laravel installer in window 10
The following steps will fix most "packages.json file could not be downloaded" issue with Composer:
- Verify your firewall setting. Disable Firewall for starters
- Enable PHP OpenSSL Extension
- 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.
Do you use any antivirus? If yes try to disable then check.
Sometime Mcafe prevent to download packagist.
To resolve this, configure composer to use the https repository by running the following command on the cli before installing Laravel
composer config -g repo.packagist composer https://packagist.org