A powerful typhoon slammed Okinawa and other islands in southwestern Japan with high winds, injuring more than 30 people as it moved west making its way toward mainland China.

The Japan Meteorological Agency said the typhoon is heading to the East China Sea, but may change course and head back to Japan later this week.

Typhoon Khanun, which means jackfruit in Thai, was heading west at speeds of 15kph (9mph), packing surface winds of up to 162kph (100mph).

Damaged buildings
Damaged buildings are seen in Naha, south of Okinawa (Kyodo News/AP)

It was at sea south-west of Okinawa’s main island, according to the agency.

Some 34 people were injured, with three seriously hurt, according to the Okinawa prefectural government.

The typhoon damaged several homes and forced transportation to halt and stores to close as it slowly moved west.

Many hospitals were only receiving emergency cases.

The storm also left nearly 200,000 homes, or about 30%, of those in Okinawa, without power, according to the Okinawa Electric Power Company.

In the Ogimi village in north-east Okinawa, a man was found without vital signs after a garage collapsed on him possibly due to violent wind, the Fire and Disaster Management Agency said.

The 90-year-old man was later pronounced dead in hospital.

Rainstorm over Okinawa
Hundreds of thousands of homes were left without power after the typhoon struck land (Kyodo News/AP)

Officials said they are investigating his death to see if it was due to the typhoon.

Several other homes were also damaged.

Hundreds of domestic and international flights in and out of the Naha airport were cancelled, and public transportation, including buses, light rail transit systems and ferries, were suspended.

Up to 20 centimetres (7.8 inches) of rainfall were expected in the Okinawa region by midday on Thursday, the agency said.

Officials warned residents against flying objects due to violent winds and urged them to stay indoors and away from windows.