无法安装yii2 bower和phpunit

esyap4oy  于 2023-02-11  发布在  PHP
关注(0)|答案(3)|浏览(147)

安装yii 2时请帮助我
composer 创建-项目易软件/易2-应用程序-高级高级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

请帮帮我
谢谢

axr492tv

axr492tv1#

是的你应该安装fxp资产插件
只需打开命令提示符并键入
composer global require "fxp/composer-asset-plugin:^1.2.0"
然后按回车键,然后你就可以安装yii2高级版了

zqry0prt

zqry0prt2#

是吗?

composer global require "fxp/composer-asset-plugin:^1.2.0"

义二

composer create-project --prefer-dist yiisoft/yii2-app-advanced yii2project

但更好的基本模板

composer create-project --prefer-dist yiisoft/yii2-app-basic yii2project

局部共欺骗

composer require "codeception/codeception=2.1.*" "codeception/specify=*" "codeception/verify=*"

和全球性

composer global require "codeception/codeception=2.1.*" "codeception/specify=*" "codeception/verify=*"

更多信息请访问www.pceuropa.net/blog/yii2-tests-codeception-configuration-first-test/

h9a6wy2h

h9a6wy2h3#

请提供composer.phar版本。从1.5.0开始插件总是尽快安装,甚至在库(https://github.com/composer/composer/blob/master/CHANGELOG.md)之前。
除非您知道并正在使用所请求的库,否则可以忽略“sugggests”行。如果您希望这些库正常工作,PHP似乎缺少一些扩展。请尝试安装这些扩展,然后重新运行install composer安装命令。
当你看到Writing lock file Generating autoload files
Composer已能够成功执行并完成。

相关问题