NPM install fails on Windows
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
- javascript
- Ambito
- build-system
Direzione di ricerca
Iniziate dallo script del ciclo di vita di npm che esegue husky install, come mostrato nell’errore di npm install. Verificate il comportamento dello script in Windows cmd invece che in Bash, quindi verificate che npm install bigscreen-player --save venga completato correttamente su Windows senza richiedere --ignore-scripts.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
When running npm install bigscreen-player --save on Windows the following error appears:
$ npm install bigscreen-player --save
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c if [ -d .git/ ]; then husky install; fi
npm ERR! -d was unexpected at this time.
This was via Git Bash but as NPM runs via cmd the Bash -d directory exists check is unsupported.
Is the bug device specific?
Limited to Windows due to it's lack of bash script support.
Is this happening on Chrome?
N/A.
Is the bug consistenly reproducible?
Yes.
Have you seen this journey working before?
No, this was my first install of the package.
To Reproduce
Steps to reproduce the behavior:
- Open a Git Bash prompt on a Windows machine
- Run
npm install bigscreen-player --save - See error
Expected behavior
The package to install without any errors.
Screenshots
N/A
Device (please complete the following information):
- Make/Model: Windows 10 Build 19045.4651
- BSP Version 8.5.1
Additional context
Workaround found to allow install to complete found of adding --ignore-scripts to the command: npm install bigscreen-player --save --ignore-scripts but there may be other implications of doing this.
- Lingua principale
- JavaScript
- Stelle
- 108
- Fork
- 18
- Merge medio
- 1h 30m
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un 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 bbc/bigscreen-player
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
bbc/bigscreen-player#382 · 1 reazione ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 35/100
bbc/bigscreen-player#196 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
bbc/bigscreen-player#183 · 6 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
bbc/bigscreen-player#124 · 6 commenti ·
-
Use audio tags for native audio contentForse di nuovo libera @jlks l’ha presa 2500 giorni fa e non c’è nessuna pull request aperta. Aperta
bbc/bigscreen-player#115 · 1 assegnatario ·
Tutte le issue di bbc/bigscreen-player
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
pedroapfilho/localveil#120 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
ImpactMojo/ImpactMojo#1385 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno