简体   繁体   中英

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

在此处输入图片说明

and enabled

在此处输入图片说明

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.

Thanks Alot everyone.

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

尝试composer clear-cache然后对composer self-update

Please try this. install laravel 5.7:

composer create-project laravel/laravel laravelproject1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM