# nodejs_OpenHarmony **Repository Path**: tin7220/nodejs_OpenHarmony ## Basic Information - **Project Name**: nodejs_OpenHarmony - **Description**: nodejs_OpenHarmony - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: 6.0r - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2026-03-30 - **Last Updated**: 2026-03-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 原生集成nodejs v22.19.0到OpenHarmony固件 本仓库用于存放OpenHarmony 6.0r版本的nodejs集成代码,本仓库使用dayu200平台作为nodejs集成进oh的参考,其它oh平台请读者自行参考本仓库修改。详细工作量请参考[README.md](./doc/README.md) ## 开发环境 - DAYU200 rk3568开发板 - OpenHarmony 6.0r no tag代码 ## 集成步骤 ``` repo init -u https://gitee.com/openharmony/manifest -b OpenHarmony-6.0.0-Release --no-repo-verify repo sync -c && repo forall -c 'git lfs pull' # 安装依赖 ./build/build_scripts/env_setup.sh source ~/.bashrc # 下载编译工具 bash build/prebuilts_download.sh git clone -b 6.0r https://gitee.com/OpenHarmony_rk_equipment_transplantation/nodejs_OpenHarmony.git nodejs_oh git clone -b 6.0r https://gitee.com/OpenHarmony_rk_equipment_transplantation/OpenHarmony_node.js_arm32_arm64.git nodejs_oh/nodejs22 tar -xJf nodejs_oh/nodejs22/nodejs_22_19_0_oh_6_0_r_arm64-v8a.tar.xz -C nodejs_oh/ # 应用补丁 bash nodejs_oh/patch.sh rm -rf out && ./build.sh --product-name rk3568 --ccache ``` ![alt text](./doc/image-2.png) ## npm包支持情况 1.纯js实现的npm包均支持。 2.包含c++实现的npm包,需要根据实际情况进行移植。例如openclaw-cn包依赖的 `@mariozechner/clipboard` (一个 Node.js 跨平台剪贴板操作库 ,用于在代码中读取和写入系统剪贴板),它就依赖了gcc的库,所以openclaw-cn无法运行。如果需要在OpenHarmony中使用openclaw,建议采用docker方案或者gnu库兼容方案 ![alt text](./doc/image-3.png) ## 读者需要注意的点 将nodejs集成后,system分区空间不足,请自行调大容量 ![alt text](./doc/image-4.png)