Wrong Version of Windows
Closed this issue · 2 comments
stanleyowen commented
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
- Open terminal
- Type
npx envinfo
- See the error
gengjiawen commented
It's using os.release()
,you should report to Node.js.
Line 51 in f1cd4da
stanleyowen commented
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
.