I'm on Windows (seems like everyone else is using *nix + latex, so I thought it's worth pointing out).
When I run this command in the command prompt:
lualatex.exe --halt-on-error --interaction=nonstopmode -output-directory=C:\ C:\Users\uuu\AppData\Local\Temp\tmp9DE6.tex
The error I get is:
! Font \TU/lmr/m/n/10=[lmroman10-regular]:+tlig; at 10pt not loadable: metric data not found or bad.
<to be read again>
relax
l.105 \fontencoding\encodingdefault\selectfont
372 words of node memory still in use:
2 hlist, 1 rule, 1 dir, 4 glue, 47 glue_spec, 2 if_stack, 2 write, 1 pdf_col
orstack nodes
avail lists: 2:13,3:3,5:2,7:2,8:1,9:2
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on tmp9DE6.log.
When I try to generate pdf file using TeXworks tool however, it's being generated properly. The question is – which command line options is it using to not have the same problem as cmd has? Or more general – what to do to make this problem go away?
EDIT:
Huh, didn't notice this earlier because of the amount of output, but one of the first things console is showing after running the above command, is:
module 'luaotfload-main' not found
Maybe that's the real problem? But what is the reason for it?
Best Answer
In case someone else comes across this problem, the solution is to install luaotfload: