{"id":26330,"library":"rollup-plugin-install","title":"rollup-plugin-install","description":"A Rollup/Vite plugin that automatically installs missing dependencies during the build process. Version 0.0.5 (stable, no recent updates) integrates into Vite or Rollup config and triggers npm/yarn install when an imported module is not found. Differentiator: eliminates manual install steps during development, but limited to simple use cases and may not handle edge cases like version conflicts. Alternative to manual dependency management or tools like pnpm.","status":"deprecated","version":"0.0.5","language":"javascript","source_language":"en","source_url":"https://github.com/SmileSmith/rollup-plugin-install","tags":["javascript","vite","rollup","plugin","install","auto"],"install":[{"cmd":"npm install rollup-plugin-install","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-install","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-install","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM import is preferred; CJS require works but may have issues in strict ESM projects.","wrong":"const { autoInstallPlugin } = require('rollup-plugin-install')","symbol":"autoInstallPlugin","correct":"import { autoInstallPlugin } from 'rollup-plugin-install'"},{"note":"Both named and default imports export the same function; default import is simpler.","wrong":"const autoInstallPlugin = require('rollup-plugin-install')","symbol":"default import (autoInstallPlugin)","correct":"import autoInstallPlugin from 'rollup-plugin-install'"}],"quickstart":{"code":"// vite.config.js\nimport { defineConfig } from 'vite';\nimport { autoInstallPlugin } from 'rollup-plugin-install';\n\nexport default defineConfig({\n  plugins: [\n    autoInstallPlugin({ bin: 'npm' }),\n  ],\n});","lang":"javascript","description":"Configures Vite to automatically install missing dependencies using npm."},"warnings":[{"fix":"Manually install dependencies before starting dev server.","message":"Plugin only triggers on build, not in dev server's hot reload.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Consider using alternative solutions like pnpm or manual install steps.","message":"Package has not been updated since 2020; use at your own risk.","severity":"deprecated","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure autoInstallPlugin is in the plugins array and options.bin is set correctly (npm/yarn).","cause":"Plugin did not run because options misconfigured or plugin not applied correctly.","error":"Error: Cannot find module 'some-package'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}