我试图在现有项目中安装Cakephp Ratchet Plugin。 我的CakePHP版本是2.4.3。 它说按照this link已下列步骤:cakephp websocket棘轮安装错误
$ cd myproject/app/
$ curl -s https://getcomposer.org/installer | php
$ php composer.phar require --no-update opauth/opauth:dev-wip/1.0 opauth/twitter:dev- wip/1.0
$ php composer.phar config vendor-dir Vendor
$ php composer.phar install
我不是很熟悉的作曲家,当我这样做的最后一步,它显示了以下错误....
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package opauth/opauth could not be found in any version, there may be a typo in the package name.
Problem 2
- The requested package opauth/twitter could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
编辑: Composer.json是这样
{
"require": {
"opauth/opauth": "dev-wip/1.0",
"opauth/twitter": "dev-wip/1.0"
},
"config": {
"vendor-dir": "Vendor"
}
}
据我了解,文档只是指作曲家和引导配置,而不是这些opauth包!你的项目是否有'composer.json'文件?如果是这样,它看起来是什么样子,放在哪里? ps,请始终提及您的确切CakePHP版本! – ndm
我编辑并添加了composer.json文件。 – Nemesis