我尝试使用作曲家安装CKEditor和Imperavi Redactor。
对于CKEditor我收到了这个错误:
$ sudo composer require "2amigos/yii2-ckeditor-widget" "*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- 2amigos/yii2-ckeditor-widget 0.1.1 requires yiisoft/yii2 * -> no matching package found.
- 2amigos/yii2-ckeditor-widget 0.1.0 requires ckeditor/ckeditor dev-full/stable -> no matching package found.
- Installation request for 2amigos/yii2-ckeditor-widget * -> satisfiable by 2amigos/yii2-ckeditor-widget[0.1.0, 0.1.1].
有趣,因为我已经放了" yiisoft / yii2":" *"在我的composer.json要求
这是Imperavi Redactor的错误:
$ sudo composer require asofter/yii2-imperavi-redactor "*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package asofter/yii2-imperavi-redactor 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
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
我该怎么办才能安装其中一个? 感谢
答案 0 :(得分:0)
对于imperavi编辑器,请使用以下命令:
sudo composer require asofter/yii2-imperavi-redactor "dev-master"