ikappas / vscode-phpcs

PHP CodeSniffer for Visual Studio Code
MIT License
128 stars 56 forks source link

Installing phpcs on WSL Ubuntu with composer, command not found. #139

Closed da-mask closed 5 years ago

da-mask commented 5 years ago

I've done a pretty standard installation of phpcs globally on WSL Ubuntu and added /.config/composer/vendor/bin to $PATH, but I'm always getting Command 'phpcs' not found. My head is hurting from trying to figure this out

image

da-mask commented 5 years ago

I ran apt-get install php-codesniffer to get it to work. This isn't mentioned on any install instructions I've seen, I don't know if this is the correct way to get this to work, it's now installed in /usr/bin/phpcs as well?

Both --dev and global composer installations can't work, $PATH has been added, but even from within the folder they can't be called.

da-mask commented 5 years ago

Bad $PATH entry. sorry.