我正在尝试安装FPDI PDF-Parser V2
我的composer.json
文件如下所示:
{
"require": {
...,
"setasign/fpdi-tcpdf": "^2.0",
"setasign/fpdi_pdf-parser": "^2.0",
...
},
"repositories": [
{
"type": "composer",
"url": "https://www.setasign.com/downloads/"
}
]
}
在~/.composer/
下,我的auth.json
文件如下所示:
{
"http-basic": {
"www.setasign.com": {
"username": "<USERNAME>",
"password": "<PASSWORD>"
}
}
}
但是,在运行composer update
时,我收到以下错误:
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Installing setasign/fpdi (v2.0.0): Loading from cache
- Installing setasign/fpdi-tcpdf (v2.0.0): Loading from cache
- Installing setasign/fpdi_pdf-parser (2.0.1): Downloading (connecting...)
[Composer\Downloader\TransportException]
Invalid credentials for 'https://www.setasign.com/downloads/
1954733/FPDI_PDF-Parser-2.0.1.zip', aborting.
用户名/密码组合工作正常,允许我通过浏览器和其他方式下载文件,但不能通过Composer工作。
我尝试过以下方法:
composer install
这一切在同一台计算机上使用相同的设置工作正常,但由于某种原因不适用于我的。
过去有没有人遇到过类似的问题?