-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 install alias@npm:@scoped/package fails for private registries #2884
Comments
Drooping a comment for exposure. Can anybody please look into this? |
faced with the same issue .npmrc contains
trying to install something from private repo
HTTP request sent without auth headers
but i will try try to install not scoped packages auth headers is present in HTTP request
|
fixed by change auth key from |
Run |
Investigating this on our end; Prioritizing accordingly |
Are there any progress on this? We also have same issue. It works with npm 6 version, but npm 7.x.x is not working for us. |
tried with:
also tried:
both have this issue :( |
can you folks try this in the latest [email protected]? i wasn't able to reproduce this one |
Closing due to age. If this is still a problem please feel free to reopen this issue, or create a new issue w/ steps to reproduce. |
I'm back! Unfortunately I don't remember what workaround I used last time, but it appears i've run into the same issue, both on NPM 8.19 and NPM 9.4. as mentioned above, .npmrc is: in package.json, I have: "dependencies": {
"aliased": "npm:@scope/my-package@^1.0.1"
} and when I run
strangely enough, if I remove the aliased reference in the package.json it installs with no issue. Then, if I then put the alias back into the package.json, there no longer is an error. |
Running into this issue as well on Node v20 with a dependency like this:
|
Current Behavior:
If we try to install a scoped package with alias name, it fails. But if we directly install the scoped package it succeeds.
Expected Behavior:
Installing packages with alias names should succeed when you try it for the first time
Steps To Reproduce:
Add the following to npmrc:
Then try installing this scoped package via package name alias:
This doesn't send the auth headers and causes the installation to fail.
Weirdly, if you install without the package name alias once, then the installation succeeds:
Environment:
I am running on NPM v7.6.0
The text was updated successfully, but these errors were encountered: