Windows WinGet configuration failures (Failed to create instance: -2147023174)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 62/100
- Issue-Typ
- Dokumentation
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- shell, yaml
- Bereich
- build-system, documentation
Rechercherichtung
Beginne in BUILDING.md beim Abschnitt 'Option 2: Automated install with WinGet', der Windows-Nutzer anweist, die .configurations-Dateien aus PowerShell auszuführen, ohne zu sagen, ob Administratorrechte erforderlich sind. Reproduziere die beiden im Issue beschriebenen Fehlerfälle, indem du winget configure auf eine dieser YAML-Dateien ausführst, einmal mit und einmal ohne erhöhte Shell. Fertig ist, wenn der Abschnitt angibt, dass der Befehl in einer erhöhten PowerShell ausgeführt werden muss, und das upstream winget-cli-Issue für den verbleibenden Fehler verlinkt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- JavaScript
- Sterne
- 122k
- Forks
- 39.9k
- Ø Merge
- 4 T. 1 Std.
- Gemergte PRs (30 T.)
- 234
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus nodejs/node
-
Docs: --watch-path *is* supported on linuxEvtl. vergeben @motokaneyuki hat das vor 4 Tagen übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
nodejs/node#66743 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
node:internal/inspector/network_http: `TypeError: Missing dataLength` in event when response uses `setEncoding()`Evtl. vergeben @lazerg hat das vor 13 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
nodejs/node#66551 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Docs] `process.loadEnvFile()` does not document behaviour when variables already existEvtl. vergeben @Sepandard hat das vor 22 Tagen übernommen. Offendoc
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
Maintainer antworten meist innerhalb von 1 Tag
-
Stream.prototype.forEach will block in first promise in queue before read more chunkEvtl. vergeben @mmustafasenoglu hat das vor 23 Tagen übernommen. Offendoc
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
nodejs 26.8.2 fails to build with clang/LLVMEvtl. wieder frei @btyagi18 hat das vor 9 Tagen übernommen, und es ist kein Pull Request offen. Offenbuild
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
nodejs/node#66076 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
SACGF/variantgrid#2341 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Unsampled pageload span is profiled when profileLifecycle is 'trace' (browser UI profiling)Evtl. vergeben @Jxxunnn hat das heute übernommen. OffenBrowser Waiting for: Product Owner
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
getsentry/sentry-javascript#25497 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
external-plugin needs-review:HIGH ready-for-review
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
github/awesome-copilot#5162 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag