首页 文章

无法安装laravel

提问于
浏览
0

我在视觉工作室代码中通过作曲家安装了laravel框架 . 作曲家创建项目laravel / laravel ems但它无法安装laravel . 这里是消息$ composer create-project laravel / laravel ems安装laravel / laravel(v5.5.0) - 安装laravel / laravel(v5.5.0):下载(失败)下载(失败)下载(失败)无法下载laravel /来自dist的laravel:无法下载“https://api.github.com/repos/laravel/laravel / zipball / a6c68c24c9938beef0128c3288502b8fbdf8e93d”文件:无法打开流:导致连接失败,因为连接方在一段时间后未正确响应,或已 Build 连接因为已连接主机而导致未能回应 .

Now trying to download from source
  • 安装laravel / laravel(v5.5.0):从缓存中克隆a6c68c24c9

[RuntimeException]无法通过https,ssh协议克隆https://github.com/laravel/laravel.git,中止 . - https://github.com/laravel/laravel.git克隆到'C:\xampp\htdocs\ems' ...致命:无法访问'https://github.com/laravel/laravel.git/ ': Failed to connect to github.com port 443: Tim ed out - git@github.com:laravel/laravel.git Cloning into ' C:\ xampp \ htdocs \ ems'... ssh:连接到主机github.com端口22:连接超时致命:无法从远程存储库读取 .

Please make sure you have the correct access rights
and the repository exists.

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] [ - ] [] [] []

1 回答

  • 0

    我想你错过了什么“--prefer-dist”

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

    看看文档https://laravel.com/docs/5.5

相关问题