0
我試圖使用作曲家安裝CKEditor和Imperavi作曲家。不能安裝所見即所得的擴展Yii 2使用作曲家
對於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.
我應該怎麼做才能安裝其中的一個? 感謝
MHM,使用CKEDITOR原生JS擴展,而不是作爲Yii的部件應該就不成問題。順便說一句。 Yii沒有任何時間在UI/JS-Lib中使用。我更喜歡使用最新的UI/JS-Libs。 – lin
步驟1:添加「asofter/yii2-imperavi-redactor」:「*」和「2 amigos/yii2-leaflet-geosearch-plugin」:「*」應用程序composer.json文件的require部分。 第2步:如果你的.phar文件是提前templete內 ./composer.phar如果不是 路徑更新 /到/ composer.phar更新 有的時候它顯示的問題。嘗試將供應商目錄轉移到其他地方,然後更新作曲家 – Kshitiz