The storm has already prompted Mexican authorities to close several Pacific ports.