The compost pile is too small or too dry. Or if it is large and moist enough it is necessary to add more N-nitrogen-rich materials.
The pile of compost must be at least 1m3. If not, make it wider. If it is not wet, add water and stir the pile. Add N-nitrogen-rich materials, such as grass clippings and / or food debris.