我在本地laravel应用程序上的一个包(催化剂/嵌套集)遇到了一些问题。我的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
然后它只是挂起一个闪烁的光标在shell。PHP OpenSSL扩展安装在我的本地和关闭防火墙没有区别。
从shell:
Failed to download cartalyst/nested-sets from dist: file could not be downloaded (HTTP/1.1 404 Not Found)
但文件已经在那里了吗?我不明白。
您遇到这个问题是因为您必须订阅catalyst存储库,以便您可以完全访问其资源和产品(库、组件、源代码)。
当Composer试图从下载或访问存储库中获取Cartalyst时,它会问你一个有效的用户名/密码,如果你已经支付了订阅费用,你将获得一个有效的认证凭证,使你能够访问存储库并通过Composer下载所需的组件/库…
请阅读以下内容:https://medium.com/@Cartalyst/boss-sheet-8019c5e07246