The `nodejs-wheel-binaries` library provides unofficial Node.js and npm binaries packaged as a Python wheel. This allows Python projects to easily access and execute Node.js without requiring a system-wide Node.js installation, particularly useful in isolated or CI/CD environments. The current version is 24.14.1, and it typically releases new versions corresponding to major Node.js updates.
pip install nodejs-wheel-binariesVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to locate the Node.js and npm executables provided by the package and then execute simple commands using `subprocess`. This is the primary way to interact with Node.js via this library.
Always use `find_nodejs_bin()` or `find_npm_bin()` to get the executable path, then execute it via `subprocess.run()`.
Always retrieve binary paths using `from nodejs_wheel_binaries import find_nodejs_bin, find_npm_bin` and pass these paths to `subprocess` calls.
Install additional Node.js tools via `npm install -g <tool-name>` using the `npm_bin` provided by `nodejs-wheel-binaries`.
When upgrading `nodejs-wheel-binaries` to a version that bundles a new major Node.js release, thoroughly test your Node.js scripts for compatibility with the new Node.js version. Consult Node.js release notes for breaking changes.
No dependency data recorded yet.