You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
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.
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:
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?
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?
Activity
Varun-S10 commentedon Aug 26, 2026
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:
Could you please let me know if it works for you?
Lafougere commentedon Aug 28, 2026
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?
Varun-S10 commentedon Sep 1, 2026
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?
github-actions commentedon Sep 9, 2026
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.
github-actions commentedon Sep 17, 2026
This issue was closed due to lack of activity after being marked stale for past 7 days.
google-ml-butler commentedon Sep 17, 2026
Are you satisfied with the resolution of your issue?
Yes
No