PHP CodeSniffer Config installed_paths set to ../../elasticsearch,../../codeception,../../ Magento 2
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,
-
1did you found any solution @sunnyvenkata prasad– venkata prasad2020年08月06日 08:19:22 +00:00Commented Aug 6, 2020 at 8:19
-
1Are you able to solve this ?sumeet bajaj– sumeet bajaj2020年10月09日 14:42:53 +00:00Commented Oct 9, 2020 at 14:42
2 Answers 2
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:
composer global require "squizlabs/php_codesniffer=*"
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:
{
"require-dev": {
"squizlabs/php_codesniffer": "3.*"
}
}
-
this is already mentioned in composer.jsonsumeet bajaj– sumeet bajaj2020年10月09日 14:44:07 +00:00Commented Oct 9, 2020 at 14:44
-
[Symfony\Component\Console\Exception\RuntimeException] The "--absolute." option does not exist.Tahir Yasin– Tahir Yasin2021年02月19日 12:36:15 +00:00Commented Feb 19, 2021 at 12:36
-
use --absolute command without fullstop at last.Dolly– Dolly2023年08月15日 16:51:55 +00:00Commented Aug 15, 2023 at 16:51
I have sometimes faced this issue and mostly they were related to php version.
Lets check the requirement of your magento version, your php version . Even php_codesniffer requirement ( if have )