Skip to content

Missing pre-built binary for @tensorflow/tfjs-node@4.22.0 on Node.js 20.x (Windows x64) #8688

@jhetuts

Description

@jhetuts

Please make sure that this is a build/installation issue. As per our [GitHub Policy](https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md), we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

  • OS Platform and Distribution: Windows_NT 10.0.17763 (Windows Server 2019 / AWS CodeBuild Windows Container)
  • Mobile device: N/A
  • TensorFlow.js installed from (npm or script link): npm
  • TensorFlow.js version: @tensorflow/tfjs-node@4.22.0
  • Node.js version: 20.19.5 (win32, x64)
  • CUDA/cuDNN version: N/A (CPU-only version)

Describe the problem
There are no pre-built binaries available for @tensorflow/tfjs-node@4.22.0 on Node.js v20.19.5 for Windows x64.

During installation, node-pre-gyp attempts to download the pre-built binary but hits a 404 Not Found error at the following URL:
https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.22.0/CPU-windows-4.22.0.zip

Because the download fails, it falls back to building from source using node-gyp. This compilation fails in our CI pipeline (AWS CodeBuild) because the default Windows container images do not include the required Visual Studio C++ Desktop Development build tools.

Provide the exact sequence of commands / steps that you executed before running into the problem

  1. Set up a Windows environment/container with Node.js v20.19.5.
  2. Ensure no Visual Studio C++ toolchains are installed (to simulate standard CI runner).
  3. Run npm install --legacy-peer-deps on a project containing "@tensorflow/tfjs-node": "4.22.0".

Any other info / logs

npm error node-pre-gyp install failed with error: Error: Command failed: node-pre-gyp install --fallback-to-build
npm error node-pre-gyp info it worked if it ends with ok
npm error node-pre-gyp info using node-pre-gyp@1.0.9
npm error node-pre-gyp info using node@20.19.5 | win32 | x64
npm error node-pre-gyp info check checked for "C:\codebuild\tmp\output\src3150089487\src\node_modules\@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding.node" (not found)
npm error node-pre-gyp http GET https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.22.0/CPU-windows-4.22.0.zip
npm error node-pre-gyp ERR! install response status 404 Not Found on https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.22.0/CPU-windows-4.22.0.zip 
npm error node-pre-gyp WARN Pre-built binaries not installable for @tensorflow/tfjs-node@4.22.0 and node@20.19.5 (node-v115 ABI, unknown) (falling back to source compile with node-gyp) 
npm error node-pre-gyp WARN Hit error response status 404 Not Found on https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.22.0/CPU-windows-4.22.0.zip 
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@20.19.5 | win32 | x64
...
npm error gyp ERR! find VS **************************************************************
npm error gyp ERR! find VS You need to install the latest version of Visual Studio
npm error gyp ERR! find VS including the "Desktop development with C++" workload.
...
npm error gyp ERR! stack Error: Could not find any Visual Studio installation to use
...
npm error node-pre-gyp ERR! build error 
...
[Container] 2026/04/16 03:55:46.429031 Command did not exit successfully npm install --legacy-peer-deps exit status 1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions