I am going to install Magento using the composer.
I ran this command,
composer create-project –repository-url=https://repo.magento.com/
magento/project-community-edition
There is showing me an error white installing the package. Please check below screenshot for further information.
Note: I have installed elastic search package on my server. But i don't think this error is related to the elasticsearch. Can you guys help me?
Thanks,
Best Answer
Please install it using composer your error may be solved by installing this
If you use Composer, you can install PHP_CodeSniffer system-wide with the following command:
Make sure you have the composer bin dir in your PATH. The default value is ~/.composer/vendor/bin/, but you can check the value that you need to use by running
composer global config bin-dir --absolute.
Or alternatively, include a dependency for squizlabs/php_codesniffer in your composer.json file. For example: