Windows issues - leafo/moonscript GitHub Wiki

On non-Windows platforms, the Lua module paths are hard-coded (e.g. '/usr/local/share/lua/5.1'). On Windows, if you have installed Moonscript separately, it is necessary to set these paths so your programs can find installed Lua modules.

For instance, I have Lua for Windows at 'd:\utils\lua', and so this is needed:

set LUA_PATH=;;d:\utils\lua\lua\?.lua;d:\utils\lua\lua\?\init.lua
set LUA_CPATH=;;d:\utils\lua\clibs\?.dll

This will be added to the existing path used by Moonscript, so libraries may also be accessed relative to the Moonscript installed executable.