请帮助我.whem install yii2
composer create-project yiisoft / yii2-app-advanced advanced 2.0.11
- Installing phpunit/phpunit (5.7.17): Loading from cache
- Installing codeception/base (2.2.10): Loading from cache
- Installing codeception/verify (0.3.3): Loading from cache
symfony/console suggests installing symfony/filesystem ()
symfony/console suggests installing symfony/process ()
symfony/browser-kit suggests installing symfony/process ()
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.1)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
phpunit/phpunit suggests installing ext-xdebug (*)
codeception/base suggests installing codeception/specify (BDD-style code blocks)
codeception/base suggests installing flow/jsonpath (For using JSONPath in REST module)
codeception/base suggests installing phpseclib/phpseclib (for SFTP option in FTP Module)
codeception/base suggests installing league/factory-muffin (For DataFactory module)
codeception/base suggests installing league/factory-muffin-faker (For Faker support in DataFactory module)
codeception/base suggests installing symfony/phpunit-bridge (For phpunit-bridge support)
Writing lock file
Generating autoload files
请帮帮我
谢谢
答案 0 :(得分:1)
是的,你应该安装fxp资产插件
只需打开命令提示符并输入
即可 composer global require "fxp/composer-asset-plugin:^1.2.0"
然后按Enter键。之后你可以安装yii2 advanced
答案 1 :(得分:0)
你呢?
composer global require "fxp/composer-asset-plugin:^1.2.0"
yii2
composer create-project --prefer-dist yiisoft/yii2-app-advanced yii2project
但更好的基本模板
composer create-project --prefer-dist yiisoft/yii2-app-basic yii2project
codeception localy
composer require "codeception/codeception=2.1.*" "codeception/specify=*" "codeception/verify=*"
和globaly
composer global require "codeception/codeception=2.1.*" "codeception/specify=*" "codeception/verify=*"
更多信息,请访问www.pceuropa.net/blog/yii2-tests-codeception-configuration-first-test /
答案 2 :(得分:0)
请提供composer.phar版本。从1.5.0开始,即使在库(https://github.com/composer/composer/blob/master/CHANGELOG.md)之前,也始终安装插件。
除非您知道并使用所请求的库,否则可以忽略“建议”行。如果您希望这些库工作,那么PHP似乎缺少一些扩展。尝试安装那些然后重新运行install composer install命令。
当您看到
Writing lock file
Generating autoload files
Composer已经能够成功执行和完成。