Webpack plugin that automatically installs and saves missing npm dependencies during development. Version 2.0.4 is deprecated; the package was last updated in 2017 and is no longer actively maintained. It works with JavaScript (require/import), CSS @import, and Webpack loaders, but has known issues with newer Webpack versions and Node.js releases. Alternatives include webpack-auto-inject-version or manual dependency management.
npm install npm-install-webpack-plugin-cnVerified import paths — ran on the pinned version, not inferred.
Shows how to configure the plugin in webpack.config.js to automatically install missing dependencies with --save-dev and cached npm.
Use a maintained alternative or manually handle dependency installation.
Do not use with Webpack 4+; consider using webpack-auto-inject-version or similar.
Ensure .babelrc is valid JSON; upgrade to v4.0.5+ if possible.
Use with caution; prefer pre-installing dependencies via npm install before build.
Run 'npm install --save-dev npm-install-webpack-plugin' in your project directory.
Use 'const NpmInstallPlugin = require('npm-install-webpack-plugin');' then 'new NpmInstallPlugin()'.Run 'npm install --save-dev npm-install-webpack-plugin@2.0.4' to install the exact version.