Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[OV JS] Bump supported Node.js version to 22 (#38160)

Kirill Suvorovf5f99942abb9
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tag
index 1819be12584..655b3c2eb70 100644
--- a/.github/dockerfiles/docker_tag
+++ b/.github/dockerfiles/docker_tag
@@ -1 +1 @@
-pr-37751
\ No newline at end of file
+pr-38160
\ No newline at end of file
diff --git a/.github/dockerfiles/ov_build/fedora_29/Dockerfile b/.github/dockerfiles/ov_build/fedora_29/Dockerfile
index eab1cdc0157..619ea08dc1f 100644
--- a/.github/dockerfiles/ov_build/fedora_29/Dockerfile
+++ b/.github/dockerfiles/ov_build/fedora_29/Dockerfile
@@ -122,7 +122,7 @@ RUN python3 -m pip install --no-cache-dir ninja==1.13.0
# Install Node
-ENV NODE_VERSION=21.7.3
+ENV NODE_VERSION=22.23.2
ENV NVM_DIR=/.nvm
RUN mkdir -p $NVM_DIR
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_arm64/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_arm64/Dockerfile
index e29db3fef44..5f790640797 100644
--- a/.github/dockerfiles/ov_build/ubuntu_22_04_arm64/Dockerfile
+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_arm64/Dockerfile
@@ -114,7 +114,7 @@ RUN python3 -m pip install --no-cache-dir ninja==1.13.0
RUN locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8
# Install Node
-ENV NODE_VERSION=21.7.3
+ENV NODE_VERSION=22.23.2
ENV NVM_DIR=/.nvm
RUN mkdir -p $NVM_DIR
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_arm64_cross_compilation/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_arm64_cross_compilation/Dockerfile
index 8e3cd8f9606..5cd9858803c 100644
--- a/.github/dockerfiles/ov_build/ubuntu_22_04_arm64_cross_compilation/Dockerfile
+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_arm64_cross_compilation/Dockerfile
@@ -133,7 +133,7 @@ ENV PATH="/venv/bin:$PATH"
RUN python3 -m pip install --no-cache-dir ninja==1.13.0
# Install Node
-ENV NODE_VERSION=21.7.3
+ENV NODE_VERSION=22.23.2
ENV NVM_DIR=/.nvm
RUN mkdir -p $NVM_DIR
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile
index e12e1428ec9..88feab7192d 100644
--- a/.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile
+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile
@@ -105,7 +105,7 @@ RUN python3 -m pip install --no-cache-dir ninja==1.13.0
RUN locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8
# Install Node
-ENV NODE_VERSION=21.7.3
+ENV NODE_VERSION=22.23.2
ENV NVM_DIR=/.nvm
RUN mkdir -p $NVM_DIR
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
diff --git a/.github/dockerfiles/ov_test/fedora_33/Dockerfile b/.github/dockerfiles/ov_test/fedora_33/Dockerfile
index 090b6fd52ef..8c8bc49ecd5 100644
--- a/.github/dockerfiles/ov_test/fedora_33/Dockerfile
+++ b/.github/dockerfiles/ov_test/fedora_33/Dockerfile
@@ -28,7 +28,7 @@ RUN dnf update -y && dnf install -y \
xz
# Install Node
-ENV NODE_VERSION=21.7.3
+ENV NODE_VERSION=22.23.2
ENV NVM_DIR=/.nvm
RUN mkdir -p $NVM_DIR
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
diff --git a/.github/dockerfiles/ov_test/ubuntu_22_04_android/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_22_04_android/Dockerfile
index 950694c3dcd..866a741d8cd 100644
--- a/.github/dockerfiles/ov_test/ubuntu_22_04_android/Dockerfile
+++ b/.github/dockerfiles/ov_test/ubuntu_22_04_android/Dockerfile
@@ -72,7 +72,7 @@ RUN yes | sdkmanager --sdk_root=${ANDROID_HOME} --licenses && \
"platforms;android-${ANDROID_API_LEVEL}" \
"system-images;android-${ANDROID_API_LEVEL};${ANDROID_TARGET};${ANDROID_ARCH}" \
"emulator" && \
- ${ANDROID_HOME}/cmdline-tools/16.0/bin/sdkmanager tools
+ ${ANDROID_HOME}/cmdline-tools/16.0/bin/sdkmanager platform-tools
# Install additional tools for emulator
RUN apt update && \
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 375d4ac5ed8..2df18210982 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -26,7 +26,7 @@ permissions: read-all
env:
ENABLE_BRANCH_COVERAGE: 'false'
LCOV_CAPTURE_TIMEOUT_SECONDS: '3600'
- NODE_VERSION: '21'
+ NODE_VERSION: '22'
NODE_EXTRA_CA_CERTS: /usr/local/share/ca-certificates/IntelProxyRootCA-Base64.crt
IGPU_DRIVER_PACKAGES: |-
https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.15985.7/intel-igc-core_1.0.15985.7_amd64.deb
diff --git a/.github/workflows/job_build_windows.yml b/.github/workflows/job_build_windows.yml
index b1a2db69b11..32dd080ef45 100644
--- a/.github/workflows/job_build_windows.yml
+++ b/.github/workflows/job_build_windows.yml
@@ -45,7 +45,7 @@ permissions: read-all
env:
PYTHON_VERSION: '3.11'
- NODEJS_VERSION: '21'
+ NODEJS_VERSION: '22'
jobs:
Build:
diff --git a/.github/workflows/job_openvino_js.yml b/.github/workflows/job_openvino_js.yml
index cb48fff2669..7549c5c0643 100644
--- a/.github/workflows/job_openvino_js.yml
+++ b/.github/workflows/job_openvino_js.yml
@@ -16,7 +16,7 @@ on:
description: 'NodeJS version to setup. E.g., "22"'
type: string
required: false
- default: "21"
+ default: "22"
permissions: read-all
diff --git a/.github/workflows/linux_arm64.yml b/.github/workflows/linux_arm64.yml
index 72ff61e19cd..79c416c217a 100644
--- a/.github/workflows/linux_arm64.yml
+++ b/.github/workflows/linux_arm64.yml
@@ -150,7 +150,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- nodejs-version: [21, 22, 24, 26]
+ nodejs-version: [22, 24, 26]
with:
runner: 'aks-linux-4-cores-8gb-arm'
image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_arm64 }}
diff --git a/.github/workflows/mac_arm64.yml b/.github/workflows/mac_arm64.yml
index 4dd41f53a68..ffba99abd77 100644
--- a/.github/workflows/mac_arm64.yml
+++ b/.github/workflows/mac_arm64.yml
@@ -38,7 +38,7 @@ permissions: read-all
env:
PYTHON_VERSION: '3.11'
- NODEJS_VERSION: '21'
+ NODEJS_VERSION: '22'
MANIFEST_FILE: manifest.yml
PRODUCT_TYPE: public_macos_arm64_release
TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}
@@ -405,7 +405,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- nodejs-version: [21, 22, 24, 26]
+ nodejs-version: [22, 24, 26]
with:
runner: 'macos-15'
nodejs-version: ${{ matrix.nodejs-version }}
diff --git a/.github/workflows/manylinux_2_28.yml b/.github/workflows/manylinux_2_28.yml
index 83919f401a8..cdf30e98d08 100644
--- a/.github/workflows/manylinux_2_28.yml
+++ b/.github/workflows/manylinux_2_28.yml
@@ -330,7 +330,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- nodejs-version: [21, 22, 24, 26]
+ nodejs-version: [22, 24, 26]
with:
runner: 'aks-linux-4-cores-16gb'
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
diff --git a/.github/workflows/ubuntu_22.yml b/.github/workflows/ubuntu_22.yml
index 71de2e28215..bd73d90da2b 100644
--- a/.github/workflows/ubuntu_22.yml
+++ b/.github/workflows/ubuntu_22.yml
@@ -172,7 +172,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- nodejs-version: [21, 22, 24, 26]
+ nodejs-version: [22, 24, 26]
with:
runner: 'aks-linux-4-cores-16gb'
image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_x64 }}
diff --git a/.github/workflows/windows_vs2022_release.yml b/.github/workflows/windows_vs2022_release.yml
index 981fc9dbc10..6928b2314bf 100644
--- a/.github/workflows/windows_vs2022_release.yml
+++ b/.github/workflows/windows_vs2022_release.yml
@@ -194,7 +194,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- nodejs-version: [21, 22, 24, 26]
+ nodejs-version: [22, 24, 26]
defaults:
run:
shell: pwsh
diff --git a/docs/articles_en/about-openvino/release-notes-openvino/system-requirements.rst b/docs/articles_en/about-openvino/release-notes-openvino/system-requirements.rst
index 882dbf93036..7783ad676ec 100644
--- a/docs/articles_en/about-openvino/release-notes-openvino/system-requirements.rst
+++ b/docs/articles_en/about-openvino/release-notes-openvino/system-requirements.rst
@@ -268,21 +268,21 @@ to learn more about the release types.
All x86_64 / arm64 architectures are supported.
- * `Node.js version 21.0.0 and higher <https://nodejs.org/en/download/package-manager>`__
+ * `Node.js version 22.0.0 and higher <https://nodejs.org/en/download/package-manager>`__
.. tab-item:: macOS
:sync: macos
All x86_64 / arm64 architectures are supported, however, only for CPU inference.
- * `Node.js version 21.0.0 and higher <https://nodejs.org/en/download/package-manager>`__
+ * `Node.js version 22.0.0 and higher <https://nodejs.org/en/download/package-manager>`__
.. tab-item:: Windows
:sync: Windows
All x86_64 architectures are supported. Windows ARM is not supported.
- * `Node.js version 21.0.0 and higher <https://nodejs.org/en/download/package-manager/>`__
+ * `Node.js version 22.0.0 and higher <https://nodejs.org/en/download/package-manager/>`__
.. tab-item:: YUM
:name: yum-sysreq
diff --git a/samples/js/node/package-lock.json b/samples/js/node/package-lock.json
index f47b2a6af5f..443cb28c4e3 100644
--- a/samples/js/node/package-lock.json
+++ b/samples/js/node/package-lock.json
@@ -21,7 +21,7 @@
"https-proxy-agent": "^7.0.6"
},
"engines": {
- "node": ">=21.0.0"
+ "node": ">=22.0.0"
}
},
"node_modules/@cacheable/memory": {
@@ -1486,7 +1486,7 @@
"tar-fs": "^3.1.1"
},
"engines": {
- "node": ">=21.0.0"
+ "node": ">=22.0.0"
}
},
"node_modules/optionator": {
diff --git a/samples/js/node/package.json b/samples/js/node/package.json
index b7c8cc7eaad..19ec19555d3 100644
--- a/samples/js/node/package.json
+++ b/samples/js/node/package.json
@@ -19,6 +19,6 @@
"postinstall": "node ./fetch-samples-assets.js"
},
"engines": {
- "node": ">=21.0.0"
+ "node": ">=22.0.0"
}
}
diff --git a/src/bindings/js/node/package-lock.json b/src/bindings/js/node/package-lock.json
index 147d327f85e..9a426401965 100644
--- a/src/bindings/js/node/package-lock.json
+++ b/src/bindings/js/node/package-lock.json
@@ -33,7 +33,7 @@
"typescript-eslint": "^8.56.1"
},
"engines": {
- "node": ">=21.0.0"
+ "node": ">=22.0.0"
}
},
"node_modules/@cacheable/memory": {
diff --git a/src/bindings/js/node/package.json b/src/bindings/js/node/package.json
index 089cb164581..280a5bce695 100644
--- a/src/bindings/js/node/package.json
+++ b/src/bindings/js/node/package.json
@@ -41,7 +41,7 @@
"typescript-eslint": "^8.56.1"
},
"engines": {
- "node": ">=21.0.0"
+ "node": ">=22.0.0"
},
"dependencies": {
"gunzip-maybe": "^1.4.2",