Vipertecpro
Vipertecpro

Reputation: 3274

Laravel 5.7 Installation Issue

I'm trying to install laravel 5.7 by using this command

> composer create-project --prefer-dist laravel/laravel new_project dev-develop

But it's reflecting following error, also i disabled antivirus and firewall.

Installing laravel/laravel (dev-develop b0651d2467f1428eadc505e1b3b4f5678611927c) - Installing laravel/laravel (dev-develop develop): Loading from cache Created project in new_project

@php -r "file_exists('.env') || copy('.env.example', '.env');" Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 71 installs, 0 updates, 0 removals - Installing vlucas/phpdotenv (v2.5.1): Downloading (failed) Downloading (failed) Downloading (failed) Failed to download vlucas/phpdotenv from dist: The "https://api.github.com/repos/vlucas/phpdotenv/zipball/8abb4f9aa89ddea9d52112c65bbe8d0125e2fa8e" file could not be downloaded : SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed Failed to enable crypto failed to open stream: operation failed Now trying to download from source - Installing vlucas/phpdotenv (v2.5.1): Cloning 8abb4f9aa8

[RuntimeException] Failed to clone https://github.com/vlucas/phpdotenv.git via https,ssh protocols, aborting. - https,ssh://github.com/vlucas/phpdotenv.git Cloning into 'D:\xamppro\htdocs\neologicx.com\new_project\vendor\vlucas\phpdotenv'... fatal: I don't handle protocol 'https,ssh'

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no -progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [] [] []

OpenSSL Installed

enter image description here

and enabled

enter image description here

Upvotes: 0

Views: 2299

Answers (4)

Vipertecpro
Vipertecpro

Reputation: 3274

Okay, my problem resolved by removing '%temp%' files from windows. After that i got content-length mismatch problem resolved from this Composer Content-Length Mismatch

And then again i tried this "composer create-project laravel/laravel laravelproject1" it worked.

Upvotes: 1

Hiren Spaculus
Hiren Spaculus

Reputation: 795

Please try this. install laravel 5.7:

composer create-project laravel/laravel laravelproject1

Upvotes: 0

AZinkey
AZinkey

Reputation: 5319

try composer clear-cache then composer self-update

Upvotes: 0

Polaris
Polaris

Reputation: 1249

composer global require "laravel/installer"

--

laravel new myProject

Run these commands in order and you should be fine.

If you prefer to use the composer create project command, then run this:

composer create-project --prefer-dist laravel/laravel blog

Upvotes: 0

Related Questions