Registry / devops / lightningcss-cli-linux-x64-musl

lightningcss-cli-linux-x64-musl

JSON →
library1.32.0jsnpmunverified

Native binary package for the Lightning CSS CLI targeting x86_64 Linux with musl libc. Lightning CSS (version 1.32.0) is a high-performance CSS parser, transformer, and minifier written in Rust, developed by the Parcel bundler team. It offers a complete CSS toolchain including vendor prefixing, nesting support, custom media queries, color function conversion, lowering modern CSS to browser-compatible syntax, and minification with optional source maps. Unlike JavaScript-based tools like PostCSS or cssnano, it processes CSS in Rust with no native dependencies on the target system, achieving significantly faster processing speeds. The CLI is published as platform-specific npm packages; this one is for Alpine Linux and other musl-based distributions. Update cadence follows Lightning CSS releases, approximately monthly with semantic versioning.

npm install lightningcss-cli-linux-x64-musl
INSTALL
IMPORT
SIG · LIGHTNINGCSS-CLI-L
L
lightningcss-cli-linux-x64-musl
devopsjavascriptv1.32.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.

lightningcss-cli
npx lightningcss <command>
npm install lightningcss-cli --global
The CLI is intended to be invoked via npx or local devDependency. Global install is discouraged because platform-specific packages may conflict.

Minify a CSS file using Lightning CSS CLI via npx with output to a new file.

npx lightningcss --minify input.css -o output.min.css
Debug
Known issues
gotchaThis package must be installed alongside the main lightningcss-cli package. It is automatically selected based on platform, but manual installation without the main package will result in missing commands.
fix
Install the main lightningcss-cli package (npm install -D lightningcss-cli) which pulls the correct platform-specific binary.
affects: >=1.0.0
gotchaOn non-musl Linux (e.g., Ubuntu), the glibc variant (lightningcss-cli-linux-x64-gnu) is required. Installing the musl variant will cause binary execution failures.
fix
Ensure you are on a musl-based system (like Alpine) or install the gnu variant via 'npm install -D lightningcss-cli' (auto-detection).
affects: >=1.0.0
breakingNode.js < 12.0.0 is not supported due to native binary compatibility.
fix
Upgrade Node.js to 12.0.0 or higher.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Module did not self-register: '.../lightningcss-cli-linux-x64-musl/lightningcss.linux-x64-musl.node'.
Attempting to use the musl binary on a glibc-based Linux distribution.
fix
Remove the musl package and install the main lightningcss-cli package, which selects the correct platform binary automatically.
sh: npx: command not found
npm is not installed or not in PATH; npx is bundled with npm.
fix
Install Node.js and npm, or run via node_modules/.bin/lightningcss directly.
Upgrade
Version history
1.32.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
lightningcss-cli-linux-x64-musl — npm install lightningcss-cli-linux-x64-musl · libregistry