I can't run root on my computer(Windows 10, not Linux)

Last year, I installed root 6.18 / 04 on my computer, it reported an error, but it can be used normally.Yesterday I uninstalled the old one and installed the latest version 6.20 / 04. This time I got an error and it was not working. I run root in CMD and the error code is as follows.

C:\WINDOWS\system32>root
In file included from input_line_3:38:
In file included from D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\cassert:9:
In file included from D:\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
D:\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:142:12: error: redefinition of '_CrtEnableIf<true, _Ty>'
    struct _CrtEnableIf<true, _Ty>
           ^~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:142:12: note: previous definition is here
    struct _CrtEnableIf<true, _Ty>
           ^
In file included from input_line_3:38:
In file included from D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\cassert:9:
In file included from D:\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
D:\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:517:16: error: redefinition of '__crt_locale_data_public'
typedef struct __crt_locale_data_public
               ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:517:16: note: previous definition is here
typedef struct __crt_locale_data_public
               ^
In file included from input_line_3:38:
In file included from D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\cassert:9:
In file included from D:\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
D:\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:524:16: error: redefinition of '__crt_locale_pointers'
typedef struct __crt_locale_pointers
               ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:524:16: note: previous definition is here
typedef struct __crt_locale_pointers
               ^
In file included from input_line_3:38:
In file included from D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\cassert:9:
In file included from D:\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
D:\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:532:16: error: redefinition of '_Mbstatet'
typedef struct _Mbstatet
               ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:532:16: note: previous definition is here
typedef struct _Mbstatet
               ^
Assertion failed: !isNull() && "Cannot retrieve a NULL type pointer", file C:\build\ws\BUILDTYPE\Release\LABEL\windows10\V\6-20\root\interpreter\llvm\src\tools\clang\include\clang/AST/Type.h, line 630

I have installed Visual Studio Community 2019, the installed components are as follows.
SharedScreenshot

Thank you very much for your help.

This is a known issue. The only solution is to build ROOT from source. See for example this topic, or simply search on this forum for similar issues…

Thank you so much. :smile: