Miriam died while the Hebrews were camped at Kadesh in Zin.
While the Hebrews were wandering around the desert, they ran out of water. They began complaining to Moses and Aaron about this horrible trip on which they would all most likely die. So God told Moses to wave the magic staff over a rock and ask it for water. Instead, Moses hit the rock with the staff and demanded water. Water came out, but God was pissed that Moses disobeyed It. It told Moses and Aaron that because they disobeyed, neither would live to see the promised land.
After Kadesh, Moses sent a message to the king of Edom asking for permission to pass through his lands. But Edom was all, hell no! and sent this message by army. So the Hebrews went another way, toward Mount Hor. There, God told Moses to take Aaron and his son Eleazar up the mountain, strip Aaron of his vestments, and put then on Aaron. Then Aaron died.