I am facing this issue in Visual Studio Code. I have already tried reinstalling the phpcs extension but still facing this issue.
Unable to locat
paste the following in your terminal for system-wide installation
composer global require squizlabs/php_codesniffer
This stopped the error message from popping up in mine.