You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装Node.js时Chocolatey报错.Net 4.8注册表项未找到,如何解决?

Chocolatey安装时.NET Framework 4.8错误(退出码5100)的解决方法

解决步骤

1. 手动确认并安装.NET Framework 4.8

错误码5100通常是系统不满足.NET 4.8安装条件,或脚本未检测到已安装的.NET版本:

  • 打开控制面板→程序和功能→查看已安装的更新,搜索.NET Framework 4.8确认是否已安装。
  • 若未安装,下载对应系统版本的.NET 4.8离线安装包,右键以管理员身份运行完成安装,之后重启电脑。
  • 注意:Windows 7需先安装Service Pack 1及KB3063858等必要更新,否则无法安装.NET 4.8。

2. 强制跳过.NET检测,直接安装Chocolatey

若已确认.NET 4.8已安装,但脚本仍报错,可通过参数跳过.NET检测流程:
以管理员身份打开PowerShell,执行以下命令:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) -SkipDotNetCheck

3. 验证系统兼容性

确保你的Windows版本符合.NET 4.8的最低要求:

  • Windows 7 SP1、Windows 8.1、Windows 10 1607及以上
  • Windows Server 2008 R2 SP1、Windows Server 2012 R2、Windows Server 2016及以上

内容的提问来源于stack exchange,提问作者jason kendrick

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.04 23:45:56