我无法安装 dropbox PHP sdks
spatie/flysystem-dropbox
或 kunalvarma05/dropbox-php-sdk
我尝试从composer.json文件安装并使用命令
composer require spatie/flysystem-dropbox
或composer require kunalvarma05/dropbox-php-sdk
两次尝试均失败并出现以下错误。
Failed to download dropbox/dropbox-sdk from dist: The "https://api.github.com/repos/dropbox/dropbox-sdk-php/zipball/0f1a178ca9c0271bca6426dde8f5a2241578deae" file could not be downloaded (HTTP/2 404 ):
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/repos/contents#download-a-repository-archive-zip"}
Now trying to download from source
- Syncing dropbox/dropbox-sdk (v1.1.7) into cache
1/1 [============================] 100%
In Git.php line 471:
Failed to execute git clone --mirror -- 'https://ghp...sWW:[email protected]/dropbox/dropbox-sdk-php.git' '/Users/krishnik/Library/Caches/composer/vcs/https---githu
b.com-dropbox-dropbox-sdk-php.git/'
Cloning into bare repository '/Users/krishnik/Library/Caches/composer/vcs/https---github.com-dropbox-dropbox-sdk-php.git'...
remote: Repository not found.
fatal: repository 'https://github.com/dropbox/dropbox-sdk-php.git/' not found
我还尝试在添加 github 个人访问令牌后安装该包。
https://github.com/dropbox/dropbox-sdk-php.git此链接返回 404 错误。