[英]Cannot Install WYSIWYG Extension for Yii 2 Using Composer
I've tried to install CKEditor and Imperavi Redactor using composer. 我尝试使用composer安装CKEditor和Imperavi Redactor。
For CKEditor I got this error: 对于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].
Funny, coz I've put "yiisoft/yii2": "*" in my composer.json requirement 有趣,因为我在composer.json要求中输入了“ yiisoft / yii2”:“ *”
And this is the error for Imperavi Redactor: 这是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.
what should I do to be able to install one of them ? 我应该怎么做才能安装其中之一? thanks
谢谢
对于imperavi redactor,请使用以下命令:
sudo composer require asofter/yii2-imperavi-redactor "dev-master"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.