我試圖在現有項目中安裝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