Code Inspection: Missing module dependency
Configure inspections: Settings | Editor | Inspections
Show intention actions: AltEnter
Reports a module from a require()
call or an import
statement that is not installed or is not listed in package.json dependencies.
Suggests installing the module and including it into package.json.
For require()
calls, works only in the files from the scope of Node.js Core JavaScript library.
Place the caret at the highlighted line and press AltEnter or click
.
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.