ติดตั้ง yii2 แล้วเกิดการ Error ระบบแจ้งว่า Your requirements could not be resolved to an installable set of packages. ท่านใดมีวิธีแก้รบกวนแนะนำด้วยครับ
C:\xampp\htdocs>composer create-project --prefer-dist yiisoft/yii2-app-advanced meeting
Installing yiisoft/yii2-app-advanced (2.0.8)
- Installing yiisoft/yii2-app-advanced (2.0.8)
Downloading: 100%
Created project in meeting
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
- yiisoft/yii2 2.0.8 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- Installation request for yiisoft/yii2 >=2.0.6 -> satisfiable by yiisoft/yii2[2.0.6, 2.0.7, 2.0.8].
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://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
ตรวจสอบแล้ว แต่เป็นแบบนี้ครับ
Error
The path to yii framework seems to be incorrect.
You need to install Yii framework via composer or adjust the framework path in file requirements.php.
Please refer to the README on how to install Yii.
Warning: require_once(C:\xampp\htdocs\meeting/vendor/yiisoft/yii2/requirements/YiiRequirementChecker.php): failed to open stream: No such file or directory in C:\xampp\htdocs\meeting\requirements.php on line 23
Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\meeting/vendor/yiisoft/yii2/requirements/YiiRequirementChecker.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\meeting\requirements.php on line 23
มีการติดตั้งไม่สมบูรณ์ครับ
ก่อนอื่นลองติดตั้ง composer asset/plugin อีกครั้งครับ
composer global require "fxp/composer-asset-plugin:~1.1"
จากนั้น upgrade composer
composer self-update
จากนั้น upgrade composer global package
composer global update
จากนั้นลองติดตั้งอีกครั้งครับ
composer create-project yiisoft/yii2-app-advanced meeting
ได้ไม่ได้อย่างไรบอกด้วยนะครับ
ตอบ/อธิบาย