composer: can’t create new project

I am studying Laravel now.
I am going to create new project using composer.
I am using Window 7 and XAMPP.
I have tried command “composer create-project laravel/laravel cats –prefer-dist”.
But I have got error as following:

C:\Users\Administrator\Documents\Laravel>composer create-project laravel/laravel


cats --prefer-dist





[Composer\Downloader\TransportException]
  The "https://packagist.org/packages.json" file could not be downloaded: SSL
   operation failed with code 1. OpenSSL Error messages:
  error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
  Failed to enable crypto
  failed to open stream: operation failed



create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repos
itory-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--n
o-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs]
[package] [directory] [version]



C:\Users\Administrator\Documents\Laravel>

I have set HTTP_PROXY and HTTPS_PROXY.

Now what can I do to solve this problem.
Please help me.

Thanks.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s