How do I resolve this error: "Failed to resolve module specifier 'openai'"?

Any one struggling with this, I’d recommend this thread. "Failed to resolve module specifier "openai". when using VS code live server? - #7 by media6

@Diet spells out exactly what I needed to do