mpeterv / luacheck

A tool for linting and static analysis of Lua code.
MIT License
1.92k stars 322 forks source link

No executable when installing luacheck via npm on Mac OSX? #179

Closed martin-braun closed 6 years ago

martin-braun commented 6 years ago

A Visual Studio extension requires luacheck to be a global executable command on my MacBook. I went ahead installing luacheck via npm install -g luacheck, but I don't get any bin link so I could use it on the Terminal and thus can be used by that extension. Instead all it does is installing the lib files so I can require luacheck within any JS app.

Is there a way to get it as executable on Mac OSX? I've seen there is only a bat file for Windows users. Any help is appreciated.

mpeterv commented 6 years ago

luacheck npm package is just a wrapper on top of luacheck CLI. Have you tried installing luacheck CLI via Luarocks? Either way, I'll try to make a binary build for Mac OS.

mpeterv commented 6 years ago

Apparently crossccompiling to Macos is pretty complicated, splitting that into #180. IIRC Luarocks should work pretty well on Mac.

martin-braun commented 6 years ago

Thank you, how could I not think about LuaRocks? Works!

ZanderDev commented 5 years ago

Looking forward to a binary build for Mac OS.