Error running PHPCS Error
[Linter] Error running PHPCS Error: Failed to spawn command `phpcs`. Make sure `phpcs` is installed and on your PATH
at /Users/lgdeloss/.atom/packages/linter-phpcs/node_modules/atom-linter/lib/helpers.js:130:24
at process._tickCallback (internal/process/next_tick.js:103:7)
Make sure that phpcs has been installed. which phpcs should return the path to it if things are setup properly 😉.
It was installed. I installed through atom
This package (linter-phpcs) is just a wrapper around the PHP_CodeSniffer utility. You need to follow their installation instructions in order to have it available on your system.
Yeah, so I have followed the instructions and I'm still getting the same error, Ive gone as far as uninstalling and re-installing atom
What does which phpcs return when you run that in a CLI?
@Arcanemagus I have the same issue. I have it installed in my Documents folder (Mac). Does the directory location for PHPCodeSniffer matter? I configured the package in Atom to point to that location, but I still can't get it work. Any suggestions?


@ScarletPonytail you should be getting a different error with that setting, are you sure you are seeing the exact same text?
I made some changes to the file location, and the error has now changed (if you want me to create a new issue I can do).
@Arcanemagus Here is my Atom config:

...and here is the Console error:

Thanks.
Please create a new issue, as that is something different. When creating the issue please include the output of running /Users/lpercival/PHP_CodeSniffer/bin/phpcs --version, thanks!
Looks like the same problem discussed here https://github.com/AtomLinter/linter-phpcs/issues/305 and here https://github.com/AtomLinter/linter-phpcs/issues/307
Closing due to a lack of response from @gabriel88d. As pointed out by @StephanSchrade you are likely hitting the same thing as #305 @ScarletPonytail.
eu tive o mesmo problema, era variaveis do sistema no windows que estava errada