A powerful typhoon is blowing away from the northern Philippines after leaving at least four people dead despite not making landfall.