Quick NPM Install is a Visual Studio Code extension that helps you automatically identify and install missing npm packages in JavaScript and TypeScript projects. When hovering over or working with import statements, this extension offers a quick action to install any missing dependencies.
Features
Automatic Missing Package Detection: Detects missing npm packages in JavaScript and TypeScript files.
Quick Fix and Hover Actions: Provides a "Quick Fix" option in the editor and a hover message with a clickable link to install missing packages.
Single-Click Package Installation: Easily install missing packages without leaving your editor.
Example Usage
Hover over a missing package in an import statement and click the "Install package" link.
Use the "Quick Fix" option provided by VS Code when it identifies missing imports.
Requirements
Node.js and npm: Make sure you have Node.js and npm installed, as this extension relies on npm to install missing packages.
VS Code: Version 1.60.0 or higher is recommended for compatibility with code actions and hover providers.
Extension Settings
This extension adds the following settings to your VS Code settings:
quickNpmInstall.enable: Enable or disable the Quick NPM Install extension. (default: true)
Known Issues
Limited to JavaScript, TypeScript, and React files (.js, .ts, .jsx, .tsx).
The extension assumes that the missing package is available on npm and tries to install it without further checks.
Release Notes
1.0.0
Added support for detecting missing require packages
0.0.5
Initial release of Quick NPM Install:
Added support for detecting missing npm packages in import statements.
Enabled hover and quick fix actions to install missing packages directly from the editor.
0.0.4
Added error handling and notifications:
Improved error messages when packages fail to install.
Added notification after successful package installation.