-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] npm error TAR_BAD_ARCHIVE: Unrecognized archive format #7986
Comments
I am also facing this issue, is there any resolution for this? |
NPM registry seems to be returning 304 for packages to reproduce it locally, you need to clear npm cache and try again rm -rf node_modules/ && npm cache clean --force && npm i as this is from the registry, it is happening on other package managers as well It appears to be a region-specific issue, currently only reproducible in India #3229 seems to be related |
Does it mean, migrating from npm to yarn is the solution? Any other mitigation? Our production systems are down because of this. |
Yes it is region specific issue. |
Any workaround on this? Even we are facing issue on our production systems build. |
We have tried everything. Like Clearing the cache. |
Yup failing for me as well, in local. Surprisingly this works on the github actions CI/CD pipeline. |
Any work around found for this ? we tried
Nothing working on the azure CI/CD, but works on the local. |
Our production AWS beanstalk deployment is out of service because of this since 12 hours already-
|
curl -I https://registry.npmjs.org/
The notice says to use replicate endpoint. Not sure what to do in this case |
My CodeBuild execution gives me the "npm ERR! code EINTEGRITY" error. [Container] 2024/12/17 07:03:47.294476 Running command npm install pm2 -g44 | npm ERR! code EINTEGRITY Any workaround yet? |
@sagrawal31 |
Add this line in your Dockerfile before the npm install. No need to create .npmrc file unless you're using a private registry. RUN npm config set registry https://registry.npmmirror.com/ --global |
@crup working for me now thank you. |
@stssathishr, the suggestion given by @crup should also work as it will set the same registry in the docker's image (usually at |
How safe is it to use https://registry.npmmirror.com/? 🤔 |
Same question! |
Guys, the issue is with npmjs registry and not with npm package manager, we're probably not reaching them through this issue |
Below are the failing packages in our project: https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz |
This is not working for me |
hello everyone, this worked for me in my CI-CD pipeline
|
Facing the same issue. I’ve tried everything— it works locally but fails on AWS CI/CD pipelines. Local: Bengaluru, AWS: ap-south-1 (Mumbai) region. |
try changing the network, wifi, or using a VPN, then run npm install command. |
Issue needs to be reported on npm support . |
It looks like the npm team is on vacation, sipping piña coladas and leaving us to wrestle with bugs. I guess we’ll just have to keep calm and debug on until they come back! |
@iamhassangm you should probably report it to npm support before it spreads. |
A package |
Package Install failures due to "304 Not Modified" responses in Mumbai, India region |
This is fixed! works for me! |
Issue is resolved now for Mumbai Region . 🎉 Kudos to the community for the quick resolution. |
It has been fixed... |
it's fixed :) |
Cannot find module node_modules/react-refresh/runtime.js' can anyone help ? |
This repo is for tracking bugs w/ the npm cli itself. Registry support does not monitor these issues, so they won't see anything raised here. For npm registry support please use https://www.npmjs.com/support. |
I was facing the issue since 9pm IST. |
This has been fixed by npmjs. |
Quoting this again so it's at the bottom of the issue now that it's been locked.
That goes to the registry support team. |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When ever I trying to install pm2 (some other packages also having this issue) globally using npm i -g pm2 it is showing me this error
I tried this with yarn, pnpm also. Same issues facing using yarn or pnpm.
I tried this with Ubuntu 22.04, Ubuntu 24.04, Fedora Cloud 41
Besides I also tried this with node-lts 18, 20, 22 and with latest npm.
Expected Behavior
No response
Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: