Taiwan lacks nukes and China is rapidly building out it's nuclear umbrella. I believe they absolutely intend to try to use that same nuclear threat to enable their invasion of Taiwan without American intervention.
Notwithstanding that Japan already "has" plenty of nukes, they just happen to be on American submarines.