ohos-node

Third-party Node.js build for OpenHarmony.

GitHub: hqzing/ohos-node

Get Pre-built Packages

You can download pre-built packages from either of the following sources:

Usage

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 24