-
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
yarn install: Couldn't find package "package-name" on the "npm" registry #6029
Comments
@roytz are u by chance having any network issues (Firewall, etc)? Or, do you have a different registry set for any of your Can you run the same command and include the |
@hulkish thank you!!! |
I'm facing this issue. Here is the verbose output:
Nothing in the found I can visit the URL that responded with status code 401, and there doesn't seem to an issue there. Installing with Attempted solutions
Versions
|
Using edit: Using Hmm.. |
Moving my .npmrc file to my desktop temporarily worked for me. I was trying to install @pusher/chatkit-client and the error above was being given to me. This is after 2 years of not having done anything to my .npmrc. The contents of that file were:
Not sure what the issue was. |
I just randomly had the exact same issue as @alvincrespo and clearing the random line out of |
I was able to solve this error by running |
Ran into this issue a few minutes ago. Can confirm that it was my |
I've started getting these errors too. When I removed the line from my .npmrc file with an auth token for the main npm registry that looked like a UUID (separated by dashes), then it worked. What's strange is that the other auth tokens were not of this format - they look as if they are some base64-encoded string. |
The What's weird is that edit: More accurately,
..also works as expected. |
@aleclarson note that |
@eurycea that blog post fully explains it for my case |
considering i can see this error with and without a npmrc....and, when i do have one its pointed to a private registry... i highly doubt that this is the cause. |
Thanks @aleclarson |
My experience is slightly different and it may help others I had updated so it was missing if we put it back, it will work |
In my case, it was because of ~/.npmrc file which defines another registry (used for enterprise environment and not accessible anymore). When I removed that configuration it worked fine. |
in my case, it is totally new project and i am trying to install webpack. which gives me
MacOS Catalina Trying to upgrade yarn to latest to check if happens again |
I encountered this situation today. I resolved it by simply using the Yarn cache: |
The same problem today: "npm i" works, but "yarn" - doesn't work |
I have the same problem with Relevant output from
I assume yarnpkg caches 404's for a period but this has now been happening for about 12 hours. |
I wonder if the problem that suddenly appeared today is related to package names starting with a numeral. This started happening to me this morning with the package I am hoping that this is a transient problem related to yarn infrastructure or something and will just go away soon.... Version infoyarn version: 1.21.1 Output
|
Same problem for me with this
|
I think we've documented all we need on this thread. It seems that several other issues are being opened for this bug: |
I am using a nexus private repository and saw in the debug logs that yarn tries to download
with which the nexus responds with 404, because it should be
i.e. the slash which gets url-encoded is the problem. id say that this is a problem with nexus not properly handling urls, but is it possible to turn yarns url-encoding off? edit: |
I am facing the same issue. |
Here is the --verbose log PS C:\supportserviceUI2\support-service-ui> yarn --verbose |
You sir, are a legend! |
i confirm, this solution work, you save my day |
https://status.npmjs.org/incidents/cksjqc1w11v5 this is some npm registry issue |
Experiencing it without any reason today (all jenkins pipelines failing, yarn install also failing locally). Nothing from the provided responses did help. Any ideas how to fix it? |
npm login was temporary workaround but seems like npm registry is fixed now and errors should be gone |
having this issue early on a sunday morning, hoping its fixed by tomorrow or build pipeline hell. Is definitely related to escaping of urls. Right now working with --prefer-offline. I did install v2, regretted it, and tried to move back 1.22.5 yesterday. But I believe it was unrelated although I cannot remember at this point. no .yarn .yarnrc removed as well. |
I have a different registry set in |
use cnpm link worked |
Waiting an hour worked 🙃 |
If you are using a private npm registry to try to configure always auth, there are some private repositories that require authentication for all packages. try set npm(
|
This works for me, but I have a question, why I can't get access after logging out of npm, but after logging in to yarn |
This works for me! 🎉 |
After I removed the I cannot figure out why. |
i tried this , it works , thanks!! |
im having a similar issue with this works 👍
but when i do the same in .yarnrc 👎
and try referencing in package.json
i get:
it appears to be appending scope name to the url? |
So, why this issue is closed? |
I believe that is the correct behavior for the URL.
Because the person who opened the issue resolved it by fixing their configuration, and closed the issue since they are no longer having a problem. |
In my case i was running into random packages not installing while locally they are installing just fine, none of the above solutions worked. |
I'm having a similar issue, just that it seems like the package disapeared (?) By instance, going to the package url just {"error":"Not found"} https://registry.yarnpkg.com/@tensorflow/tfjs-webgpu Is there a posibility there is an issue with the NPM repository itself? |
In my case the error was my package version was |
This works for me, thanks @StringKe :) |
I see the same issue, but I have no solution to fix it. I suspect this issue is related to OpenSSL.
|
I deleted the yarn.lock file and reinstall it from scratch. It fixed |
Cost me a couple of days to find out that this error only happens for me when the version of the workspace (and dependant package) contains a version any other than a specfic semver. e.g. So this fails: I think this might be a limitation with yarn workspace function that internally parses version numbers somewhere and fails causing the packages to be searched on npm which in turn also fails because it doesn't exist there. might be related to: #8567 |
Help my please |
In my case the problem was that the location of newly added package wasn't mentioned in "workspaces" property of package.json 🙂
|
Please do not close this issue as duplicate - it's not the same as #3645 or #2611
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Whenever executing
yarn install
I get an error message -Couldn't find package "[PACKAGE_NAME]" on the "npm" registry
.After removing the
PACKAGE_NAME
line from thepackage.json
dependencies, I get the same error for the next package on the list.I use yarn workspaces but the errors I get are for regular packages (such as
winston
,eslint
etc.).Even after removing workspaces it still happens.
What is the expected behavior?
Install all packages with no errors.
Please mention your node.js, yarn and operating system version.
yarn: 1.7.0
node: 10.5.0
OS: macOS Sierra
The text was updated successfully, but these errors were encountered: