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
- 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
1 Answer
Reset to default 0I 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.