2014-01-07 66 views
1

我想将omnipay/Sagepay付款方式与myproject ..i安装供应商文件夹成功..但不能更新Sagepay软件包..如果我更新显示终端错误,像这样“ 问题1 - 请求包omnipay/sagepay 1.0.0找不到Omnipay sagepay 2.0软件包找不到

Potential causes: 
- A typo in the package name 
- The package is not available in a stable-enough version according to your min 
imum-stability setting" 

还我选择要安装的路径作曲家天气C:/ bin中(或)我的项目文件夹为c:/ XAMPP/htdocs目录/ myproject

My Composer file is 
{ 
    "name": "omnipay/sagepay", 
    "type": "library", 
    "description": "Sage Pay driver for the Omnipay PHP payment processing library", 
    "keywords": [ 
     "gateway", 
     "merchant", 
     "omnipay", 
     "pay", 
     "payment", 
     "purchase", 
     "sage pay", 
     "sagepay" 
    ], 
    "homepage": "https://github.com/omnipay/sagepay", 
    "license": "MIT", 
    "authors": [ 
     { 
      "name": "Adrian Macneil", 
      "email": "[email protected]" 
     }, 
     { 
      "name": "Omnipay Contributors", 
      "homepage": "https://github.com/omnipay/sagepay/contributors" 
     } 
    ], 
    "autoload": { 
     "psr-0": { "Omnipay\\SagePay\\" : "src/" } 
    }, 
    "require": { 
     "omnipay/common": "~2.0", 
     "omnipay/sagepay": "~2.0" 
    }, 
    "require-dev": { 
     "omnipay/tests": "~2.0" 
    }, 
    "extra": { 
     "branch-alias": { 
      "dev-master": "2.0.x-dev" 
     } 
    } 
} 

回答

2

你的composer.json文件正在定义一个名为omnipay/sagepay的新包,这显然不是你想要的。

每安装说明,你的所有composer.json文件应包含是这样的:

{ 
    "require": { 
     "omnipay/sagepay": "~2.0" 
    } 
} 

然后运行composer update下载的依赖关系。