Composer fails to download PHP Codesniffer to plugin

I am getting an error when trying to install the squizlabsphp_codesniffer package via composer into my WordPress plugin

I am getting an error when trying to install the squizlabs/php_codesniffer package via composer into my WordPress plugin.

I am using Flywheel for the local server, with composer 1.8.6 installed globally at /usr/local/bin/composer.phar

I have also tried using the composer file locally in the plugin folder, but I still get the same error. This is the command I run while in the plugin directory

composer require --dev squizlabs/php_codesniffer

I am getting an error when trying to install the squizlabs/php_codesniffer package via composer into my WordPress plugin.

I am using Flywheel for the local server, with composer 1.8.6 installed globally at /usr/local/bin/composer.phar

I have also tried using the composer file locally in the plugin folder, but I still get the same error. This is the command I run while in the plugin directory

composer require --dev squizlabs/php_codesniffer

Share Improve this question asked Jun 28, 2019 at 8:04 WarwickWarwick 3762 silver badges11 bronze badges 6
  • Should this question rather be on the main stack overflow site? or is it fine here? – Warwick Commented Jun 28, 2019 at 8:15
  • Yes, better on Stack Overflow. – norman.lol Commented Jun 28, 2019 at 8:16
  • Also better put the error message in a blockquote. Screenshots are a pain to read. Especially on mobile. – norman.lol Commented Jun 28, 2019 at 8:18
  • 1 @Warwick I guess you need to update OpenSSL. – Sally CJ Commented Jun 28, 2019 at 8:19
  • Found this: github/composer/composer/issues/6870 – norman.lol Commented Jun 28, 2019 at 8:19
 |  Show 1 more comment

1 Answer 1

Reset to default 0

I managed to fix the error by updating openssl as @Sally Cj said. I was still using Mac OS El Capitan, so I tried the Homebrew method of updating it, but that didnt fix it.

I eventually ended up just upgrading to the latest "Mojave" OS version, and it works 100% now.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745352098a4623895.html

相关推荐

  • Composer fails to download PHP Codesniffer to plugin

    I am getting an error when trying to install the squizlabsphp_codesniffer package via composer into my WordPress plugin

    10小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信