Registry / devops / google-closure-compiler-linux-arm64

google-closure-compiler-linux-arm64

JSON →
library20260428.0.0jsnpmunverified

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.

npm install google-closure-compiler-linux-arm64
INSTALL
IMPORT
SIG · GOOGLE-CLOSURE-COM
G
google-closure-compiler-linux-arm64
devopsjavascriptv20260428.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

google-closure-compiler-linux-arm64
This package is a binary dependency; do not import directly. Use the main 'google-closure-compiler' package instead.
import compiler from 'google-closure-compiler-linux-arm64'
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.

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.
Debug
Known issues
gotchaDo 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.
affects: all
gotchaThis 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.
affects: all
deprecatedSome older versions may not have been published for all platforms; check version availability.
fix
Use the latest version to ensure ARM64 support is available.
affects: <20260401
gotchaNode.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).
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'google-closure-compiler-linux-arm64'
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');
Module not found: Can't resolve 'google-closure-compiler-linux-arm64'
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: spawn google-closure-compiler ENOENT
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.
Upgrade
Version history
20260428.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
google-closure-compiler-linux-arm64 — npm install google-closure-compiler-linux-arm64 · libregistry