We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
npm install fails to clone branch, commit hash or tag when the repo does not have a HEAD reference.
Error Message: `npm ERR! Cannot read properties of undefined (reading 'sha')
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2023-01-26T12_33_01_788Z-debug-0.log`
It should still be able to clone the specified reference.
npm install ssh+git://git@private/private_repo#reference
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there an existing issue for this?
Current Behavior
npm install fails to clone branch, commit hash or tag when the repo does not have a HEAD reference.
Error Message:
`npm ERR! Cannot read properties of undefined (reading 'sha')
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2023-01-26T12_33_01_788Z-debug-0.log`
Expected Behavior
It should still be able to clone the specified reference.
Steps To Reproduce
npm install ssh+git://git@private/private_repo#reference
`npm ERR! Cannot read properties of undefined (reading 'sha')
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2023-01-26T12_33_01_788Z-debug-0.log`
Environment
The text was updated successfully, but these errors were encountered: