Precompiling Plots LoadError Display not defined

I used Plots successfully.
But now, when writing using Plots, I get the error:
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: UndefVarError: Display not defined

What to do?