Windows WinGet configuration failures (Failed to create instance: -2147023174)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 62/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- shell, yaml
- Ambito
- build-system, documentation
Direzione di ricerca
Inizia da BUILDING.md, nella sezione 'Option 2: Automated install with WinGet', che indica agli utenti Windows di eseguire i file .configurations da PowerShell senza dire se servono i diritti di amministratore. Riproduci le due modalità di errore descritte nell'issue eseguendo winget configure su uno di quei file YAML, con e senza una shell elevata. È completato quando la sezione specifica che il comando deve essere eseguito in un PowerShell elevato e quando l'issue upstream di winget-cli è collegato per l'errore residuo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Situation
The BUILDING > Windows Prerequisites documentation section 2: Automated install with WinGet describes using the .configurations files to install prerequisites on Microsoft Windows required for building Node.js.
The instructions say to use a PowerShell terminal, and do not specify if elevated (Admin) privileges are necessary.
If the configuration is run without Admin privileges, it fails to install Visual Studio:
VSComponents [vsComponents]
Loading the module for the configuration unit failed because it requires administrator privileges to run.
If the configuration is run with Admin privileges, it fails to determine the current state:
The configuration unit failed while attempting to test the current system state.
Failed to create instance: -2147023174
This error condition is also noted in issue https://github.com/microsoft/winget-cli/issues/6560
Steps to reproduce
On Windows 11 26H2:
From Windows Settings > Apps > Installed Apps delete any of:
- Git
- Microsoft Visual Studio Installer
- Python
- Python Installer
- Python Launcher
- Rust
Delete:
C:\Python*if foundC:\Program Files\NASM
Restart system
In a PowerShell 7 terminal window, execute:
git clone https://github.com/nodejs/node
cd node
winget configure .\.configurations\configuration.vsBuildTools.dsc.yaml
Logs
Microsoft Windows NT 10.0.26300.0 x64
Windows 11 26H2 (OS Build 26300.9711)
PowerShell 7.6.7
winget v1.29.380
PowerShell non-Admin
WinGetPackage [pythonPackage]
Unit successfully applied.
WinGetPackage [vsPackage]
Unit successfully applied.
VSComponents [vsComponents]
Loading the module for the configuration unit failed because it requires administrator privileges to run.
WinGetPackage [rustPackage]
Unit successfully applied.
WinGetPackage [gitPackage]
Unit successfully applied.
WinGetPackage [nasmPackage]
Unit successfully applied.
Some of the configuration was not applied successfully.
PowerShell Administrator
WinGetPackage [pythonPackage]
The configuration unit failed while attempting to test the current system state.
Failed to create instance: -2147023174
<See the log file for additional details>
WinGetPackage [vsPackage]
The configuration unit failed while attempting to test the current system state.
Failed to create instance: -2147023174
<See the log file for additional details>
WinGetPackage [rustPackage]
The configuration unit failed while attempting to test the current system state.
Failed to create instance: -2147023174
<See the log file for additional details>
WinGetPackage [gitPackage]
The configuration unit failed while attempting to test the current system state.
Failed to create instance: -2147023174
<See the log file for additional details>
WinGetPackage [nasmPackage]
The configuration unit failed while attempting to test the current system state.
Failed to create instance: -2147023174
<See the log file for additional details>
VSComponents [vsComponents]
This configuration unit was not run because a dependency failed or was not run.
Some of the configuration was not applied successfully.
Suggestion
- Add requirement to run as PowerShell Administrator to 2: Automated install with WinGet
- Monitor resolution of issue https://github.com/microsoft/winget-cli/issues/6560
- Lingua principale
- JavaScript
- Stelle
- 122k
- Fork
- 39.9k
- Merge medio
- 3g 22h
- PR unite (30g)
- 235
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 nodejs/node
-
Docs: --watch-path *is* supported on linuxForse già presa @motokaneyuki l’ha presa 2 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
nodejs/node#66743 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
node:internal/inspector/network_http: `TypeError: Missing dataLength` in event when response uses `setEncoding()`Forse già presa @lazerg l’ha presa 11 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nodejs/node#66551 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Docs] `process.loadEnvFile()` does not document behaviour when variables already existForse già presa @Sepandard l’ha presa 21 giorni fa. Apertadoc
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
Stream.prototype.forEach will block in first promise in queue before read more chunkForse già presa @mmustafasenoglu l’ha presa 21 giorni fa. Apertadoc
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
nodejs 26.8.2 fails to build with clang/LLVMForse di nuovo libera @btyagi18 l’ha presa 8 giorni fa e non c’è nessuna pull request aperta. Apertabuild
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
nodejs/node#66076 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
BUG
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: filesystem-edit-file converts a CRLF file's line endings to LF on every editForse già presa @MohammadHijjawi97 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Mintplex-Labs/anything-llm#6755 ·
I maintainer di solito rispondono entro 1 giorno
-
type/bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
flarum/framework#5231 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/rocketmq-dashboard#6896 ·
I maintainer di solito rispondono entro 3 giorni
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno