-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
An unexpected error occurred: "https://registry.yarnpkg.com/<package>: Not found" #5865
Comments
Getting the same error message, but maybe a different cause?
|
Yeah, seems a different one. Mine seems to be triggered by the usage of Git Bash and its strange behaviour around the "/" character on Windows. Today I noticed that now it doesn't install any package with a namespace, probably because it converts "/" to backslash for some obscure reasons... |
This seems to happen randomly - if I run curl repeatedly, the following works around 10% of the time:
|
Getting the same issue during our CI build, always fails on the same url @Jasu posted. Indeed it seems to happen randomly so I don't think changing yarn client version or anything will happen. Almost seems like there's a caching layer in place that has cached a 404 on some of its nodes or something. |
Having the same failure as @Jasu is seeing, which just started occurring today. Looks like it could have been cache that allowed it to work 10% of the time, but that seems to have been purged now and I have yet to download it. seems that the referenced types package at Anyone on the yarn team aware of why this is removed? seems that node-9.6.0+ is available, however upgrading to yarn 1.7.0, will try updating the types dep and report back |
yep upgrading my @types/node dep to 9.6.0 worked. not ideal but worked. i think it's important to mention that this is not a yarn only issue as I found the same issue using npm only and discovered that the @types/9.4.2 & 9.4.3 tarballs missing from the interwebs which could be something to do with removal of those packages by DefinitelyTyped or storage issue on npmjs.org, I wasn't able to find much other info regarding this issue which is why i am adding the context |
Hey all, heads up-- Had this same issue on mac and was able to resolve this with the following steps:
And everything worked/installed as expected. My hunch is that the salient step is the removal of |
@anied I also have the similar issue, but when I remove |
After upgrading from Yarn 1.6.0 to 1.7.0 I just deleted the lock file and ran |
First
and then...
|
Arguments: PATH: Yarn version: Node version: Platform: Trace: |
Similar issue:
Curl can download the package without any problems. edit: I determined the problem... this is certainly terrible error messaging by yarn or npm (not sure if yarn reimplements npm's features or not). Turns out in my instance, I had some bad authentication credentials in my |
Had the same problem. I changed my |
@jaapaurelio |
Running the below command in terminal fixed my issue: yarn config set strict-ssl false |
I don't know what that config option does, but given the name it doesn't seem a good idea to set it to false randomly... |
Hiya, for me it was causing problems due to my strict secure corporate network. It just allowed me to bypass that. I'd just make sure you know what packages you're installing first, and then flip it back to true afterwards. But I'm far from an expert in this, so if anyone has any insights as to any possible dangers here, I'd love to read about them. Cheers everyone. |
Had this error with sinon: from packge.json: Error in terminal: I was able to resolve it with: Which made yarn look for sinon-7.4.1.tgz instead. |
Our builds have been failing intermittently with this same error for the last couple of days. The first failure we noticed was at 2019-09-30T00:01 UTC. The failures are happening fairly frequently (but not every time, more like 80-90% of the time). It's always the same error, but for 4 different packages so far:
Each of these packages is public, and each version that's failing is the latest one published, so upgrading to a newer version isn't an option. Doing a The various suggestions above (and in many other issues) to delete |
I concur, the yarn registry is completely screwed up at the moment. Never seen it this bad on my side...keep getting these networks errors. I've deleted yarn lock and tried a ton of solutions that used to work for me in the past....don't know what to do. |
Problem Solved! Not a yarn problem, but rather a Windows Subsystem for Linux (WSL): connectivity issue. |
Oddly enough, I just needed to restart my computer. The good ol' turn it off and on again. I tried several different things including the above solutions, but restarting did the trick. |
I'm having the same problem. I'm using WSL too. Could you share how did you solve it? 😄 |
I'm on macOS, and like @RyanPWalker I just rebooted and the error was gone. |
I just delete the yarn.lock file and try yarn add again, It worked ! |
Getting this:
deleting yarn.lock and node_modules and then reinstalling hasnt worked, we dont use WSL. Might be related to This looks like a problem with yarn. Any thoughts? |
I'm seeing this error now when trying to run builds on CodeBuild:
|
After breaking the build on production level... it's back working now |
Another update:
|
Its working now Thanks |
It worked for me, even though the npm status page still shows partial outage. |
thank you npm always |
Working fine now! |
Working now. Thanks! |
Working now...:) |
Still happens with me |
worked for me |
Had the same issue here, and working none of the solutions! My goshi |
Is not working guys! $ yarn add react-route-dom |
same issue by me:( |
run |
I was using my phone as hotspot. Restarting the phone fixed the issue 🤷 |
Doesn't work for me |
If you are inside an intranet, check which registry you are connecting to. You may have been blocked from the npmjs.org registry. |
More info: In my case, this error was related to some misfunction in docker, probably after some change on iptables rules. After restart docker service, everything works fine for me. |
Worked for me!! 🎉 😁 |
yarn global v1.22.5 |
Closing as there is nothing actionable here, the registry is just a CNAME to npm so need to raise those issues with them |
I got the same error. Error:
Node Version: |
This worked for me: |
work for me! |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I cannot install some packages globally when in Windows and using Git Bash.
For example, for
@nrwl/schematics
(but also for@angular/cli
) I getError log:
In Ubuntu it seems to work just fine.
Same if I use the Windows PowerShell instead of Git Bash.
If the current behavior is a bug, please provide the steps to reproduce.
See above
What is the expected behavior?
That packages are installed
Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: