{"id":25643,"library":"google-closure-compiler-linux-arm64","title":"Closure Compiler Linux ARM64 Native Binary","description":"Native Linux ARM64 binary distribution for the Google Closure Compiler, version 20260428.0.0. This package automatically installs the Java-based Closure Compiler compiled for ARM64 architecture, intended as an optional dependency of the platform-agnostic google-closure-compiler package. It enables JavaScript optimization, minification, and type checking on ARM64 Linux systems (e.g., Raspberry Pi, AWS Graviton). Releases follow weekly cadence aligned with upstream Closure Compiler releases. Use this only when targeting Linux ARM64; the main package handles platform selection.","status":"active","version":"20260428.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/ChadKillingsworth/closure-compiler-npm","tags":["javascript","compiler","optimizer","minifier","closure","java"],"install":[{"cmd":"npm install google-closure-compiler-linux-arm64","lang":"bash","label":"npm"},{"cmd":"yarn add google-closure-compiler-linux-arm64","lang":"bash","label":"yarn"},{"cmd":"pnpm add google-closure-compiler-linux-arm64","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package is a platform-specific binary; it should not be imported in code. It is automatically resolved by the main 'google-closure-compiler' package for Linux ARM64 systems.","wrong":"import compiler from 'google-closure-compiler-linux-arm64'","symbol":"google-closure-compiler-linux-arm64","correct":"This package is a binary dependency; do not import directly. Use the main 'google-closure-compiler' package instead."}],"quickstart":{"code":"// This package is a binary distribution, not a library.\\n// To use Closure Compiler on Linux ARM64, install the main package:\\n// npm install google-closure-compiler\\n// \\n// Then use the command-line interface:\\n// npx google-closure-compiler --js input.js --js_output_file output.js\\n// \\n// Or use the API in Node.js (ESM):\\nimport { getNativeImagePath } from 'google-closure-compiler';\\nimport { execSync } from 'child_process';\\nconst compilerPath = getNativeImagePath();\\nconst result = execSync(`${compilerPath} --js input.js --js_output_file output.js`, { encoding: 'utf8' });\\nconsole.log(result);\\n// TypeScript users can install @types/google-closure-compiler for types.","lang":"typescript","description":"Demonstrates that this package is a platform binary and should be used via 'google-closure-compiler' main package, with CLI and Node.js API examples."},"warnings":[{"fix":"Use the main 'google-closure-compiler' package instead, which automatically selects the correct platform binary.","message":"Do not import or require this package directly; it is a binary dependency and will not work as a JavaScript module.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure your system architecture is ARM64 (e.g., uname -m returns aarch64). For other platforms, the main package will install the appropriate binary.","message":"This package only works on Linux ARM64 (aarch64). Attempting to install on other architectures will fail.","severity":"gotcha","affected_versions":"all"},{"fix":"Use the latest version to ensure ARM64 support is available.","message":"Some older versions may not have been published for all platforms; check version availability.","severity":"deprecated","affected_versions":"<20260401"},{"fix":"Use Node >=10. For older Node, use an older version of the package (but ARM64 support may be limited).","message":"Node.js version requirement: Node 10 or later is required for the main package.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install the main package: npm install google-closure-compiler\nThen use it: const closureCompiler = require('google-closure-compiler');","cause":"Attempting to require or import the platform package directly instead of using the main package.","error":"Error: Cannot find module 'google-closure-compiler-linux-arm64'"},{"fix":"Do not import this package; it is a binary. Only use the main 'google-closure-compiler' package.","cause":"Webpack or bundler tries to resolve the platform package as a module.","error":"Module not found: Can't resolve 'google-closure-compiler-linux-arm64'"},{"fix":"Ensure the platform package is installed (e.g., reinstall with npm install google-closure-compiler). On Linux ARM64, this package should be installed automatically.","cause":"The main package cannot find the native binary, possibly due to missing platform package or installation issue.","error":"Error: spawn google-closure-compiler ENOENT"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}