0

当我跑

sudo composer global require "laravel/lumen-installer=~1.0"

我收到一条错误消息(如下),提示下载失败elfet/php-ssh

Changed current directory to /Users/chad/.composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing elfet/php-ssh (v1.1.0)
    Downloading: Connecting...    Failed to download elfet/php-ssh from dist: The "https://api.github.com/repos/elfet/php-ssh/zipball/439becf180272542cbf154df4856a49dd3c4bf04" file could not be downloaded (HTTP/1.1 404 Not Found)
    Now trying to download from source

我也满足所有服务器要求。任何想法为什么它无法安装?

4

1 回答 1

0

这是一个 elfet/php-ssh package not found 问题,已解决

参考:https ://github.com/deployphp/deployer/issues/158

或者您可以通过 composer create-project 安装 lumen 并参考以下链接,其中包含有关安装 lumen 和创建简单的 rest api 的良好教程。

链接:http ://wsnippets.com/create-rest-api-using-lumen-micro-framework-by-laravel/

于 2015-06-16T17:34:09.810 回答