function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
china thodetichina thodeti 

11:10:36.639 sfdx force:auth:web:login --setdefaultdevhubusername Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher. Node.js might not execute co

Hi
i get the below error when i creating the scratch org in vs code.
im using windows 7 system and i had update the node.js to latest version 14 but also i'm getting the same error.
pls me how to resolve this issue. 
11:10:36.639 sfdx force:auth:web:login --setdefaultdevhubusername
Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher.
Setting the NODE_SKIP_PLATFORM_CHECK environment variable to 1 skips this
check, but Node.js might not execute correctly. Any issues encountered on
unsupported platforms will not be fixed.11:10:36.792 sfdx force:auth:web:login --setdefaultdevhubusername
 ended with exit code 216

 
SwethaSwetha (Salesforce Developers) 
HI China Thodeti,
A similar ask was posted here
https://www.gitmemory.com/issue/forcedotcom/cli/898/793129061 according to which the solution is 

Salesforce CLI is based on node, which dropped support for Windows 7 when Microsoft stopped supporting it.

You have several options:
  • Install the Salesforce CLI using NPM on a node version that doesn't have that check.
  • Set the environment variable (NODE_SKIP_PLATFORM_CHECK) as highlighted above.
  • Turn off auto-updates (set SFDX_AUTOUPDATE_DISABLE=true globally) and install an old version.
Again, these are not supported options but should unblock you so you can still use the CLI.

See related: https://github.com/forcedotcom/cli/issues/946


Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you