tighten / tlint

Tighten linter for Laravel conventions.
MIT License
523 stars 32 forks source link

Tlint command not found. #146

Closed Gazzza20 closed 4 years ago

Gazzza20 commented 4 years ago

Hi,

I am new to laravel, So I apologise for the silly question.

I have installed this package both globally and locally, When I try and run tlint in my terminal I get -bash: tlint: command not found

Would you be able to advise in where I am going wrong.

Thanks,

loganhenson commented 4 years ago

Hey @Gazzza20 can you response with the output from running the command composer global info?

Gazzza20 commented 4 years ago

tightenco/tlint 3.0.12 Tighten linter for Laravel conventions

loganhenson commented 4 years ago

Is the global composer bin directory in your path?

Gazzza20 commented 4 years ago

Sorry, Do you mean the path I run in the terminal? Really am sorry for being a pain.

loganhenson commented 4 years ago

https://stackoverflow.com/questions/25373188/how-to-place-the-composer-vendor-bin-directory-in-your-path

loganhenson commented 4 years ago

Or in video form: https://laracasts.com/series/setup-a-mac-dev-machine-from-scratch/episodes/6

Gazzza20 commented 4 years ago

Ok, I will give that a read. I can get results if I run ~/.composer/vendor/tightenco/tlint/bin/tlint. The main cause of my issue is I can't seem to get it to run with gitlab CI