Windows WinGet configuration failures (Failed to create instance: -2147023174)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 62/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- shell, yaml
- Lĩnh vực
- build-system, documentation
Hướng nghiên cứu
Bắt đầu từ BUILDING.md, tại mục 'Option 2: Automated install with WinGet', mục này hướng dẫn người dùng Windows chạy các tệp .configurations từ PowerShell nhưng không nói rõ có cần quyền quản trị viên hay không. Tái hiện hai kiểu lỗi được mô tả trong issue bằng cách chạy winget configure trên một trong các tệp YAML đó, có và không có shell nâng quyền. Hoàn thành khi mục này nêu rõ lệnh phải chạy trong PowerShell nâng quyền và có liên kết tới issue upstream của winget-cli cho lỗi còn lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- JavaScript
- Star
- 122k
- Fork
- 39.9k
- Merge trung bình
- 3 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 235
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nodejs/node
-
Docs: --watch-path *is* supported on linuxCó thể đã có người làm @motokaneyuki đã nhận 2 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
nodejs/node#66743 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
node:internal/inspector/network_http: `TypeError: Missing dataLength` in event when response uses `setEncoding()`Có thể đã có người làm @lazerg đã nhận 11 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nodejs/node#66551 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Docs] `process.loadEnvFile()` does not document behaviour when variables already existCó thể đã có người làm @Sepandard đã nhận 21 ngày trước. Đang mởdoc
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Stream.prototype.forEach will block in first promise in queue before read more chunkCó thể đã có người làm @mmustafasenoglu đã nhận 22 ngày trước. Đang mởdoc
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
nodejs 26.8.2 fails to build with clang/LLVMCó thể làm lại được @btyagi18 đã nhận 8 ngày trước và không có pull request nào đang mở. Đang mởbuild
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
nodejs/node#66076 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
bug lsp sev-3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Miaotofu01/Study-Mate#206 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
effort:low model:light plan planner:fable-5-1 test-quality tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
-
[BUG][5.4.0] 网页全屏时, 不能直接切全屏Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
zhw2590582/ArtPlayer#1073 ·