-
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 install asking for a password on nested private packages using git+ssh. #2725
Comments
Hi @brunoclima! |
Hey @Dewep! |
Any updates yet?? |
I have the same issue, do you have any update? |
Same here... |
This really needs some official attention |
Seems like this is related to #2610 and complaints about behaviour changes in v7:
From https://blog.npmjs.org/post/626173315965468672/npm-v7-series-beta-release-and-semver-major We found that when it tries to fetch the Bitbucket package via HTTPS first and MFA is enforced, then it shows the login prompt and freezes there. |
A workaround I've found for this is to change the hostname to |
Workaround seems to be broken again in npm version 9:
became
was working with npm 8 but running
while the original issue is still there, so the problem only seems to be getting worse... |
@mrft try prefixing your spec with |
To be entirely clear for the next person reading this thread, the version on the next line seems to work in npm 9, but was broken when we tried it with the latest npm8 version.
while this version seems to work for us with both:
On top of that, it turns out that VSCode can still mess things up for you. Set |
Current Behavior:
npm asks for a password (through VS Code) when installing private bitbucket packages that have another private package on its dependencies using
git+ssh
.In a separate terminal it just get stuck in the private package installation for around 20 minutes before throwing a lot of errors.
Expected Behavior:
npm installs git+ssh packages using my SSH credentials (just like v6 did)
Steps To Reproduce:
git+ssh://[email protected]:company-name/package-name.git
.Environment:
The text was updated successfully, but these errors were encountered: