正在下载:连接...无法从dist下载cartalyst / nested-sets:

时间:2014-07-15 14:16:26

标签: laravel-4 composer-php

我在本地laravel应用程序中遇到了一些包(cartalyst / nested-sets)的问题。我的composer.json的有效期为:

$ composer validate
./composer.json is valid

我在桌面上有一个嵌套集包文件的副本,并将它们包含在我的项目树中 - 因此文件存在且路径正确。

这是我的composer.json文件的快照:

"require": {          
        "cartalyst/nested-sets": "2.0.*"
},
    "repositories": [
    {
    "type": "composer",
            "url": "http://packages.cartalyst.com"
  }
],
...
然后我发出:

$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing cartalyst/nested-sets (v2.0.2)
Downloading: connection...Failed to download cartalyst/nested-sets from dist: The "https://api.github.com/repos/cartalyst/nested-sets/zipball/7a425710ece922556e55150f5a1f2dfbedd4ffaa" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
- Installing cartalyst/nested-sets (v2.0.2)
Cloning 7a425710ece922556e55150f5a1f2dfbedd4ffaa

然后它只是挂在外壳上闪烁的光标。我的本地安装了PHP OpenSSL扩展,关闭防火墙没有任何区别。

来自shell:

Failed to download cartalyst/nested-sets from dist: file could not be downloaded (HTTP/1.1 404 Not Found)但文件已存在?我不明白。

1 个答案:

答案 0 :(得分:0)

您遇到此问题是因为您必须订阅Cartalyst存储库,以便您可以完全访问其资源和产品(库,组件,源)。

当Composer尝试从donwload获取Cartalyst或访问存储库时,它会询问您有效的用户名/密码,如果您已支付订阅费用,您将获得一个有效的身份验证凭据,使您可以访问存储库并下载通过composer所需的组件/库...

请阅读以下内容:https://medium.com/@Cartalyst/boss-sheet-8019c5e07246