-
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 resolved https with PAT as git+ssh #2631
Comments
Just spent an hour debugging this in my CI environment, just to finally relaize that npm-7 was the issue. The reason this is a problem is because github seems to not allow cloning public repos using git+ssh with out a security key, it requieres it to be git+https
By npm-7 changing everything to git+ssh... this means that it is not possible to use direct GitHub repositories as dependencies in your package.json |
This was fixed in this pr npm/pacote#61 and went into the cli as of |
I'm seeing this issue in vpm v7.5.4, I can manually edit But then every run of NPM then executes |
This and #2610 appear to be dupes |
Yes, with the added info it does appear to be a dupe. |
Hi there,
Current Behavior:
npm@7 install from https://github with PAT resolved as git+ssh://. Is this intended?
pacakge.json
package-lock.json
Expected Behavior:
package-lock.json
It's because I have some hacks to keep the PAT a secret. like:
This hack worked in npm@6, but npm@7 didn't.
Steps To Reproduce:
Environment:
The text was updated successfully, but these errors were encountered: