无法安装setasign FPDI pdf-parser

时间:2017-10-20 00:57:41

标签: php composer-php fpdi pdf-parsing

我正在尝试安装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工作。

我尝试过以下方法:

  • 完全删除了我/ vendor / file
  • 重新安装Composer
  • 删除了auth.json文件并重置
  • 已删除.composer / cache / directory
  • 重新启动的计算机
  • 删除composer.lock并运行composer install

这一切在同一台计算机上使用相同的设置工作正常,但由于某种原因不适用于我的。

过去有没有人遇到过类似的问题?

0 个答案:

没有答案