最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Composer fails to download PHP Codesniffer to plugin

programmeradmin2浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论