tabrindle/envinfo

Wrong Version of Windows

Closed this issue · 2 comments

It seems like running the npx envinfo command, it returns the wrong operating system (since I recently upgraded it to Windows 11).

Here is the output:

System:
    OS: Windows 10 10.0.22000 // It is expected to be Windows 11 instead of Windows 10
    CPU: (4) x64 AMD Ryzen 3 4300U with Radeon Graphics
    Memory: 1.33 GB / 7.37 GB
...

Steps to Reproduce

  1. Open terminal
  2. Type npx envinfo
  3. See the error

It's using os.release() ,you should report to Node.js.

version = Promise.resolve(os.release());

Additionally, os.release() only returns the OS's version number, which is 10.0.22000.

The version number is appropriate with the system settings, however the command returns Windows 10 10.0.22000 instead of Windows 11 10.0.22000.