要使用 HomeBrew 安裝 LuaRocks,可輸入下列命令。

brew install luarocks

1.png

安裝完可實際調用命令做過確認。

luarocks –version

2.png