Quick fix to install regular .js npm packages #20649
Labels
Domain: Quick Fixes
Editor-provided fixes, often called code actions.
In Discussion
Not yet reached consensus
Suggestion
An idea for TypeScript
DanielRosenwasser commentedDec 12, 2017
•
edited
Let's say I start a new project. I start writing out an import for, say,
expressbecause I'm certain I'll be using that, but I haven't bothered to install it yet.Immediately, I might get an error like
Cannot find module 'express'.because I didn't install the package before using it. This happens regardless of if I havenoImplicitAnyon. But this means I have to switch to a terminal and do an npm install.We already give a quick fix to install missing
@typespackages, we should have a fix thatThe text was updated successfully, but these errors were encountered: