{"id":20923,"library":"angular-rollup","title":"angular-rollup","description":"CLI tool for building Angular applications with Rollup and Closure Compiler, extending @angular/cli. Version 2.0.5 (last release) targets Angular 2+ projects, offering optimized production builds via Closure Compiler or Rollup. Key differentiators include integration with @angular/cli, Angular Package Format library builds, and an Express server. Low release cadence; effectively replaced by Angular CLI's built-in optimization and Ivy. Suitable for legacy Angular builds needing minimal bundle sizes.","status":"deprecated","version":"2.0.5","language":"javascript","source_language":"en","source_url":"https://github.com/steveblue/angular2-rollup","tags":["javascript","angular","framework","cli"],"install":[{"cmd":"npm install angular-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add angular-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add angular-rollup","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Extends @angular/cli commands and requires it to be installed globally.","package":"@angular/cli","optional":false},{"reason":"Closure Compiler requires Java JDK 8+ to be installed on the system.","package":"java","optional":false}],"imports":[{"note":"Package is CLI tool with binary 'ngr'; programmatic usage is not documented. Default import may not work as expected.","wrong":"const angularRollup = require('angular-rollup')","symbol":"default","correct":"import angularRollup from 'angular-rollup'"}],"quickstart":{"code":"npm install -g angular-rollup @angular/cli\nngr new my-app\ncd my-app\nngr build prod","lang":"javascript","description":"Installs the CLI globally, scaffolds a new Angular app, and builds for production with Closure Compiler."},"warnings":[{"fix":"Install Java JDK from https://www.oracle.com/java/technologies/javase/jdk8-downloads.html","message":"Requires Java JDK 8+ installed on system for Closure Compiler. Missing Java leads to obscure errors.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Migrate to @angular/cli with Angular CLI's production build (--prod) which includes optimization.","message":"Package is unmaintained; last release 2018. May not work with Angular versions >5 or Node >8.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Ensure @angular/cli is globally installed alongside angular-rollup.","message":"Global install required; 'ngr' command will not be found if @angular/cli is not also installed globally.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Ensure environment files exist in src/environments/ or use --env to specify path.","message":"Build command 'ngr build prod' may fail if environment.ts is not properly configured or missing.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run: npm install -g @angular/cli","cause":"@angular/cli not installed globally.","error":"Error: Cannot find module '@angular/cli'"},{"fix":"Run: npm install -g angular-rollup. On Windows, restart terminal after install.","cause":"angular-rollup not installed globally or not in PATH.","error":"'ngr' is not recognized as an internal or external command"},{"fix":"Install Java JDK 8+ and ensure java is in PATH.","cause":"Java runtime missing for Closure Compiler.","error":"Error: Java not found. Please install Java JDK 8 or higher."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}