{"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,"search_vec":"'0.0.5':18 'altern':62 'auto':76 'automat':9 'build':15 'case':52,58 'config':28 'conflict':61 'depend':12,65 'develop':46 'differenti':40 'edg':57 'elimin':41 'found':39 'handl':56 'import':35 'instal':4,10,32,43,75 'integr':23 'javascript':71 'like':59,69 'limit':48 'manag':66 'manual':42,64 'may':54 'miss':11 'modul':36 'npm/yarn':31 'plugin':3,7,74 'pnpm':70 'process':16 'recent':21 'rollup':2,27,73 'rollup-plugin-instal':1 'rollup/vite':6 'simpl':50 'stabl':19 'step':44 'tool':68 'trigger':30 'updat':22 'use':51 'version':17,60 'vite':25,72","created_at":"2026-05-01T13:49:25.273300+00:00","updated_at":"2026-05-01T13:49:25.273300+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/SmileSmith/rollup-plugin-install","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/rollup-plugin-install","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}