1

Am running laravel create project in windows command prompt like, composer create-project laravel/laravel laravel-medium --prefer-dist but am getting error like,

[Composer\Downloader\TransportException] Your configuration does not allow connections to http://packagist.org/packa ges.json. See https://getcomposer.org/doc/06-config.md#secure-http for details.

i don't know how to fix this issue. Please help me.

1
  • What have you tried to debug this problem? Commented Apr 10, 2020 at 19:31

1 Answer 1

1

There is a discussion about this here.

You can try to run composer self-update. This will update your composer version and might solve the problem.

If it does not, you could turn ssl off, by running composer config -g secure-http false, however I would not recommend this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.