You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating my global install of Yeoman on Windows 10 (1903), I can no longer run the yo command successfully from any terminal I try: cmd, Windows PowerShell, or PowerShell Core.
Every time I try, I get an error about a failure from wmic os get Caption (message quoted below). This command, run on its own in a terminal, does indeed produce the Description = Unspecified error as this error message describes.
So far, the only command I can get to run successfully is yo --version, which returns 3.1.0.
Error message
> yo
C:\Users\patridge\AppData\Roaming\npm\node_modules\yo\node_modules\windows-release\node_modules\execa\index.js:347
throw err;
^
Error: Command failed: wmic os get Caption
ERROR:
Description = Unspecified error
at makeError (C:\Users\patridge\AppData\Roaming\npm\node_modules\yo\node_modules\windows-release\node_modules\execa\index.js:174:9)
at Function.module.exports.sync (C:\Users\patridge\AppData\Roaming\npm\node_modules\yo\node_modules\windows-release\node_modules\execa\index.js:338:15)
at windowsRelease (C:\Users\patridge\AppData\Roaming\npm\node_modules\yo\node_modules\windows-release\index.js:34:24)
at osName (C:\Users\patridge\AppData\Roaming\npm\node_modules\yo\node_modules\os-name\index.js:39:18)
at new Insight (C:\Users\patridge\AppData\Roaming\npm\node_modules\yo\node_modules\insight\lib\index.js:37:13)
at Object.<anonymous> (C:\Users\patridge\AppData\Roaming\npm\node_modules\yo\lib\cli.js:54:17)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14) {
code: 2147500037,
stdout: '',
stderr: 'ERROR:\r\r\nDescription = Unspecified error\r\r\n',
failed: true,
signal: null,
cmd: 'wmic os get Caption',
timedOut: false
}
Attempts to fix
I tried running the wmic os get Caption command from an administrator promt to see if that was the issue, but no luck.
I tried restarting my terminal windows and even my entire machine after installing the update to Yeoman in case it was some PATH issue. No luck.
I tried updating Node.js as well (with a cautionary restart afterwards). No luck.
After updating my global install of Yeoman on Windows 10 (1903), I can no longer run the
yo
command successfully from any terminal I try: cmd, Windows PowerShell, or PowerShell Core.Every time I try, I get an error about a failure from
wmic os get Caption
(message quoted below). This command, run on its own in a terminal, does indeed produce theDescription = Unspecified error
as this error message describes.So far, the only command I can get to run successfully is
yo --version
, which returns3.1.0
.Error message
Attempts to fix
wmic os get Caption
command from an administrator promt to see if that was the issue, but no luck.Potentially related items
wmic
but they closed the issue as related to antivirus.[Edit: read the issue submission docs and added requested info]
System info
Here's the information from the issue submission command.
The text was updated successfully, but these errors were encountered: