Laravel & Php

How to fix “https://repo.packagist.org/packages.json does not contain valid Json”?


How to check if section exists in Laravel

How to fix “https://repo.packagist.org/packages.json does not contain valid Json”?

Solution 1

Try to comment a line of curl extension on php.ini.

extension=php_curl.dll

Type ; before the extension name

;extension=php_curl.dll

Solution 2

composer config disable-tls true

packagist Laravel PHP Resources
Share with Friends

Like this chef? Share with friends..