You get an error because of wrong reference to fetchTranscript.
Here is the correct way:
var yt = require("youtube-transcript");
var transcript_obj = await yt.YoutubeTranscript.fetchTranscript('_cY5ZD9yh2I'
const text = transcript_obj.map((t) => t.text).join(' ');