Marked as helpful by the asker
You cannot prompt this away; the model has no way to check. Change your workflow instead:
- Before installing,
npm view <pkg>(or open npmjs.com). Ten seconds. - Prefer asking "how do I do X with the standard library or with packages already in my package.json?" Pasting your
package.jsongrounds it. - Tools that run code (Claude Code, Cursor agent) fail fast on a fake package, ChatGPT in a browser cannot.