Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WMIC is deprecated in the latest Windows 11 builds #213

Open
HarryGwinnell opened this issue Nov 24, 2021 · 2 comments
Open

WMIC is deprecated in the latest Windows 11 builds #213

HarryGwinnell opened this issue Nov 24, 2021 · 2 comments

Comments

@HarryGwinnell
Copy link

Attempting to run "npx envinfo" will fail under the latest Windows 11 builds as wmic is deprecated. It has been replaced with Powershell for WMI (https://docs.microsoft.com/en-us/powershell/scripting/learn/ps101/07-working-with-wmi?view=powershell-7.2)

image

@HarryGwinnell
Copy link
Author

I dug into this to see if it's an easy fix. This issue comes from the os-name package, which has added Windows 11 support, but has also introduced a breaking change in moving to an ES Module format. Attempted to bump and migrate but envinfo doesn't support es modules

@jonthysell
Copy link

It's not just Windows 11, wmic was also deprecated in Windows 10 21H1: https://docs.microsoft.com/en-us/windows/win32/wmisdk/wmic

Related: react-native-community/cli#1513

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants