English | 简体中文
This project build Node.js for the OpenHarmony platform and releases pre-built packages.
Pre-built packages are available from two sources:
2. Dist source — a self-hosted Node.js dist source compatible with nodejs.org/dist.
1. Manual install
Extract the tarball and add the bin directory to PATH:
tar -zxf node-v24.2.0-openharmony-arm64.tar.gz
export PATH=$PATH:$(realpath node-v24.2.0-openharmony-arm64/bin)
# You can now use the 'node' command.2. Install via nvm / fnm (under adaptation, coming soon)
Support is under adaptation — a few patches are still needed before nvm / fnm can install from the dist source.
The intended usage:
# nvm
NVM_NODEJS_ORG_MIRROR=https://ohos-node.com/dist nvm install v24.2.0
# or persist it:
nvm set node_mirror https://ohos-node.com/dist
# fnm
FNM_NODE_DIST_MIRROR=https://ohos-node.com/dist fnm install 241. Manual Build
You need a Linux x64 host to cross-compile Node.js with the supplied build.sh.
Example on Ubuntu 24.04 x64:
sudo apt update && sudo apt install -y build-essential unzip jq
./build.sh v24.2.02. CI Build
If you are familiar with GitHub Actions, reuse the workflow file in this repo to build on GitHub’s runners, and no local environment required.
Steps for your own builds:
- Fork this repo.
- Enable workflow under the “Actions” tab.
- Push commits or create a release to trigger the workflow.