[BUG] Cannot install git package without HEAD ref
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- git, javascript
- Ambito
- cli
Direzione di ricerca
Start by reproducing the npm install command from the issue against a repository whose HEAD reference is unavailable, then trace the git reference resolution path that produces the undefined sha error. Done means the specified branch, commit hash, or tag can be installed without requiring a HEAD reference.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is there an existing issue for this?
- I have searched the existing issues
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
- Run
npm install ssh+git://git@private/private_repo#reference - Wait for the error to show up.
`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
- npm: 9.3.1
- Node: v16.14.2
- OS: Windows 11 Pro 21H2 22000.1455 Windows Feature Experience Pack 1000.22000.1455.0
- platform:
- Lingua principale
- JavaScript
- Stelle
- 76
- Fork
- 31
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di npm/git
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Needs Triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
-
feat: implement cachingAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
[BUG] StrictHostKeyChecking=accept-new causes install failure on OpenSSH <7.6Forse di nuovo libera @nlf l’ha presa 1938 giorni fa e non c’è nessuna pull request aperta. Aperta
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
invoiceninja/invoiceninja#13320 ·
I maintainer di solito rispondono entro 1 giorno
-
NoCode.vue, Task.vue: replace explicit `any` with real typesForse già presa @prayas-bit l’ha presa oggi. Apertaarea/frontend good first issue kind/cooldown
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
kestra-io/kestra#20347 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Electron/Chromium StatusNotifierItem unreachable via unique bus name, tray icon never appearsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
ubuntu/gnome-shell-extension-appindicator#676 · 1 commento ·