Module 'kong.cmd.init' not found:No LuaRocks module

Hi what can I do for this:

$ kong migrations up
ERROR: /usr/local/bin/kong:7: module 'kong.cmd.init' not found:No LuaRocks module found for kong.cmd.init
	no field package.preload['kong.cmd.init']
	no file './kong/cmd/init.lua'
	no file './kong/cmd/init/init.lua'
	no file '/usr/local/Cellar/openresty/1.13.6.2/site/lualib/kong/cmd/init.ljbc'
	no file '/usr/local/Cellar/openresty/1.13.6.2/site/lualib/kong/cmd/init/init.ljbc'
	no file '/usr/local/Cellar/openresty/1.13.6.2/lualib/kong/cmd/init.ljbc'
	no file '/usr/local/Cellar/openresty/1.13.6.2/lualib/kong/cmd/init/init.ljbc'
	no file '/usr/local/Cellar/openresty/1.13.6.2/site/lualib/kong/cmd/init.lua'
	no file '/usr/local/Cellar/openresty/1.13.6.2/site/lualib/kong/cmd/init/init.lua'
	no file '/usr/local/Cellar/openresty/1.13.6.2/lualib/kong/cmd/init.lua'
	no file '/usr/local/Cellar/openresty/1.13.6.2/lualib/kong/cmd/init/init.lua'
	no file './kong/cmd/init.lua'
	no file '/usr/local/Cellar/openresty/1.13.6.2/luajit/share/luajit-2.1.0-beta3/kong/cmd/init.lua'
	no file '/usr/local/share/lua/5.1/kong/cmd/init.lua'
	no file '/usr/local/share/lua/5.1/kong/cmd/init/init.lua'
	no file '/usr/local/Cellar/openresty/1.13.6.2/luajit/share/lua/5.1/kong/cmd/init.lua'
	no file '/usr/local/Cellar/openresty/1.13.6.2/luajit/share/lua/5.1/kong/cmd/init/init.lua'

It’s a source install compiled on my mac

Kong doesn’t appear to be properly installed. Could you at least provide us with the steps you followed (which command you entered, and what output they gave)? If you followed source installation instructions properly, the sources should be in /usr/local/share/lua/5.1/ - it would also be helpful if you let us know what is currently in there.