Skip to content

403 forbidden when trying to download https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.9.1.tar.gz during npm install #8742

Closed

Description

@Lafougere

Please make sure that this is a build/installation issue. As per our GitHub Policy, 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 (e.g., Linux Ubuntu 16.04): Ubuntu 24
  • TensorFlow.js installed from (npm or script link): npm
  • TensorFlow.js version:2.9.1
  • CUDA/cuDNN version: n/a

Describe the problem

npm install fails : npm i @tensorflow/tfjs-node --save

Provide the exact sequence of commands / steps that you executed before running into the problem
npm i @tensorflow/tfjs-node --save

Any other info / logs
npm error https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.9.1.tar.gz npm error * Downloading libtensorflow npm error npm error node:events:502 npm error throw er; // Unhandled 'error' event npm error ^ npm error npm error Error: TAR_BAD_ARCHIVE: Unrecognized archive format
It fails because the link returns a 403 forbidden error.

Activity

  1. self-assigned this
    on Aug 25, 2026
  2. Varun-S10 commented on Aug 26, 2026

    @Varun-S10

    Hi @Lafougere, Thank you for raising this issue. We have reproduced the issue. As a workaround, you can download from a different mirror by setting an environment variable before installing:

    export TFJS_NODE_CDN_STORAGE="https://your-mirror-url.com/"
    npm install @tensorflow/tfjs-node --save
    

    Could you please let me know if it works for you?

  3. Lafougere commented on Aug 28, 2026

    @Lafougere
    Author

    I can't find the 2.9.1 version. Can i use the 2.6.0 and just rename the file and self host it somewhere?
    Also is it not preferable to fix the 403 error since it's the file referenced by the npm install script?

  4. Varun-S10 commented on Sep 1, 2026

    @Varun-S10

    Hi @Lafougere, no, renaming 2.6.0 won't work because the compiled C++ binary is incompatible with 2.9.1 and will crash. The URL itself is not broken, the 403 error is due to local network/firewall restrictions blocking Google Cloud Storage. You can download the 2.9.1 file. Could you please try this and let me know if it works?

  5. github-actions commented on Sep 9, 2026

    @github-actions

    This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

  6. github-actions commented on Sep 17, 2026

    @github-actions

    This issue was closed due to lack of activity after being marked stale for past 7 days.

  7. google-ml-butler commented on Sep 17, 2026

    @google-ml-butler

    Are you satisfied with the resolution of your issue?
    Yes
    No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions