@@ -35,17 +35,17 @@ int wmain(int argc, wchar_t* wargv[]) {
3535 // Windows Server 2012 (not R2) is supported until 10/10/2023, so we allow it
3636 // to run in the experimental support tier.
3737 char buf[SKIP_CHECK_STRLEN + 1 ];
38- if (!IsWindows8Point1OrGreater () &&
39- !(IsWindowsServer () && IsWindows8OrGreater ()) &&
38+ if (!IsWindows10OrGreater () &&
4039 (GetEnvironmentVariableA (SKIP_CHECK_VAR, buf, sizeof (buf)) !=
4140 SKIP_CHECK_STRLEN ||
4241 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." );
4949 exit (ERROR_EXE_MACHINE_TYPE_MISMATCH);
5050 }
5151
0 commit comments