@@ -35,17 +35,17 @@ int wmain(int argc, wchar_t* wargv[]) {
35
35
// Windows Server 2012 (not R2) is supported until 10/10/2023, so we allow it
36
36
// to run in the experimental support tier.
37
37
char buf[SKIP_CHECK_STRLEN + 1 ];
38
- if (!IsWindows8Point1OrGreater () &&
39
- !(IsWindowsServer () && IsWindows8OrGreater ()) &&
38
+ if (!IsWindows10OrGreater () &&
40
39
(GetEnvironmentVariableA (SKIP_CHECK_VAR, buf, sizeof (buf)) !=
41
40
SKIP_CHECK_STRLEN ||
42
41
strncmp (buf, SKIP_CHECK_VALUE, SKIP_CHECK_STRLEN) != 0 )) {
43
- fprintf (stderr, " Node.js is only supported on Windows 8.1, Windows "
44
- " Server 2012 R2, or higher.\n "
45
- " Setting the " SKIP_CHECK_VAR " environment variable "
46
- " to 1 skips this\n check, but Node.js might not execute "
47
- " correctly. Any issues encountered on\n unsupported "
48
- " platforms will not be fixed." );
42
+ fprintf (stderr,
43
+ " Node.js is only supported on Windows 10, Windows "
44
+ " Server 2016, or higher.\n "
45
+ " Setting the " SKIP_CHECK_VAR " environment variable "
46
+ " to 1 skips this\n check, but Node.js might not execute "
47
+ " correctly. Any issues encountered on\n unsupported "
48
+ " platforms will not be fixed." );
49
49
exit (ERROR_EXE_MACHINE_TYPE_MISMATCH);
50
50
}
51
51
0 commit comments