无法使用composer下载laravel安装程序,无法连接到symfony repo

时间:2016-11-25 18:17:40

标签: laravel composer-php

正如官方文档所述,我正在尝试通过composer(在Windows 10中)下载laravel 5.3安装程序,但是当我在控制台中执行此命令时

composer global require "laravel/installer"
过了一会儿,我得到了这个:

Using version ^1.3 for laravel/installer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing symfony/process (v3.1.7)
    Loading from cache
    Failed to download symfony/process from dist: Invalid argument (C:\Users\Nicolßs\AppData\Roaming\Composer\vendor/symfony/process/510d7cdfaba888079a59ff4e97c9d707)
    Now trying to download from source
  - Installing symfony/process (v3.1.7)
    Cloning 66de154ae86b1a07001da9fbffd620206e4faf94 from cache

Installation failed, deleting ./composer.json.


  [RuntimeException]
  Failed to clone https://github.com/symfony/process.git via https, ssh protocols, aborting.
  - https://github.com/symfony/process.git
    Cloning into 'C:\Users\Nicolás\AppData\Roaming\Composer\vendor\symfony\process'...
    "git-upload-pack 'C:/Users/Nicolás/AppData/Local/Composer/vcs/https---github.com-symfony-process.git'": git-upload-pack 'C:/Users/Nicolás/AppData/Local/Composer/vcs/https---github.com-s

  ymfony-process.git': No such file or directory
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.
    fatal: The remote end hung up unexpectedly
  - git@github.com:symfony/process.git
    Cloning into 'C:\Users\Nicolás\AppData\Roaming\Composer\vendor\symfony\process'...
    Host key verification failed.
    fatal: Could not read from remote repository.

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

显然,我无法克隆symfony / process repo。但后来我尝试用gitclone手动完成,我可以完美地连接和克隆回购。

请帮忙。

参考 https://laravel.com/docs/5.3

1 个答案:

答案 0 :(得分:0)

如果你的目标是用laravel发展。获取此工具:laragon https://laragon.org/ 它使windows上的laravel开发很酷。