当前位置: 代码迷 >> 综合 >> 解决You are running composer with xdebug enabled. This has a major impact on runtime performance. See
  详细解决方案

解决You are running composer with xdebug enabled. This has a major impact on runtime performance. See

热度:97   发布时间:2023-12-15 06:24:24.0

在使用composer命令时,会出现下面的错误:

composer config -g repo.packagist composer https://packagist.phpcomposer.com //命令
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug

试了好几种方法都不对,因为我用的是phpstudy,很多东西不一样,后来就各种找方法,终于找到一个可行的方法:

打开php.ini,将xdebug中的zend_extension注释掉

[xdebug]
;zend_extension = D:\PHPStudy\PHPTutorial\php\php-7.0.12-nts\ext\php_xdebug-2.6.0-7.0-vc14-nts.dll
xdebug.idekey=phpstorm

然后再执行命令的时候就不会出现了

  相关解决方案