generator-rollup-init
raw JSON → 0.3.0 verified Mon Apr 27 auth: no javascript maintenance
A Yeoman generator that scaffolds Rollup configuration and package files, automating the setup of a project with Rollup as the bundler. Version 0.3.0 is the latest. This generator prompts for project details and creates a minimal config with basic plugins. Differentiates from manual setup by offering a quick CLI workflow. Released under MIT license with limited maintenance. Suitable for rapid prototyping but not actively developed; alternatives like create-react-app or custom templates may be more robust.
Common errors
error Error: yo is not recognized as an internal or external command ↓
cause Yeoman not installed globally
fix
Run: npm install -g yo
error You don't seem to have a generator with the name "rollup-init" installed. ↓
cause generator-rollup-init not installed globally
fix
Run: npm install -g generator-rollup-init
error Cannot find module 'yeoman-generator' ↓
cause Incomplete installation or missing dependencies
fix
Reinstall: npm install -g generator-rollup-init
Warnings
gotcha Generator must be installed globally ↓
fix Use npm install -g generator-rollup-init
deprecated The generator is not actively maintained; may not support Rollup 2+ plugins options ↓
fix Consider manual Rollup setup or use a more modern tool like Vite.
gotcha Requires Node.js 8+ and npm 5+ ↓
fix Upgrade Node.js and npm to compatible versions.
gotcha Prompts may override existing package.json without warning ↓
fix Run in an empty directory or backup existing files.
Install
npm install generator-rollup-init yarn add generator-rollup-init pnpm add generator-rollup-init Imports
- generator-rollup-init wrong
npm install generator-rollup-init (without -g)correctnpm install -g generator-rollup-init - yo wrong
npm install yo (without -g)correctnpm install -g yo - rollup-init wrong
rollup-init or generator-rollup-init rollup-initcorrectyo rollup-init
Quickstart
npm install -g yo generator-rollup-init
mkdir my-project
cd my-project
yo rollup-init
# Answer prompts about project name, description, etc.