They are afraid of fire. If you walk around with a torch, they will flee.

More Dilophosaur Encountering Tips