Paramedics checked over two other people at the scene, who did not need to go to hospital.
North Yorkshire Fire and Rescue Service said more than 30 firefighters have been deployed, including specialist officers and an urban search and rescue team from West Yorkshire.
Firefighters tackled several small blazes, which broke out as a result of the explosion.