Closure Compiler Linux ARM64 Native Binary

raw JSON →
20260428.0.0 verified Fri May 01 auth: no javascript

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.

error Error: Cannot find module 'google-closure-compiler-linux-arm64'
cause Attempting to require or import the platform package directly instead of using the main package.
fix
Install the main package: npm install google-closure-compiler Then use it: const closureCompiler = require('google-closure-compiler');
error Module not found: Can't resolve 'google-closure-compiler-linux-arm64'
cause Webpack or bundler tries to resolve the platform package as a module.
fix
Do not import this package; it is a binary. Only use the main 'google-closure-compiler' package.
error Error: spawn google-closure-compiler ENOENT
cause The main package cannot find the native binary, possibly due to missing platform package or installation issue.
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.
gotcha Do not import or require this package directly; it is a binary dependency and will not work as a JavaScript module.
fix Use the main 'google-closure-compiler' package instead, which automatically selects the correct platform binary.
gotcha This package only works on Linux ARM64 (aarch64). Attempting to install on other architectures will fail.
fix Ensure your system architecture is ARM64 (e.g., uname -m returns aarch64). For other platforms, the main package will install the appropriate binary.
deprecated Some older versions may not have been published for all platforms; check version availability.
fix Use the latest version to ensure ARM64 support is available.
gotcha Node.js version requirement: Node 10 or later is required for the main package.
fix Use Node >=10. For older Node, use an older version of the package (but ARM64 support may be limited).
npm install google-closure-compiler-linux-arm64
yarn add google-closure-compiler-linux-arm64
pnpm add google-closure-compiler-linux-arm64

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.

// 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.