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 npm install -g yo generator-code, I try yo code but I get this error, I am just unable to resolve.
Error Message
PS K:\Projects\vscode-extentions> yo code
C:\nvm\v14.15.1\node_modules\yo\node_modules\execa\index.js:347
throw err;
^
Error: Command failed: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption
'powershell' is not recognized as an internal or external command,
operable program or batch file.
at makeError (C:\nvm\v14.15.1\node_modules\yo\node_modules\execa\index.js:174:9)
at Function.module.exports.sync (C:\nvm\v14.15.1\node_modules\yo\node_modules\execa\index.js:338:15)
at windowsRelease (C:\nvm\v14.15.1\node_modules\yo\node_modules\windows-release\index.js:39:19)
at osName (C:\nvm\v14.15.1\node_modules\yo\node_modules\os-name\index.js:39:18)
at new Insight (C:\nvm\v14.15.1\node_modules\yo\node_modules\insight\lib\in at Object.<anonymous> (C:\nvm\v14.15.1\node_modules\yo\lib\cli.js:54:17)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
code: 1,
stdout: '',
stderr: "'powershell' is not recognized as an internal or external command,\r\n" +
'operable program or batch file.\r\n',
failed: true,
signal: null,
cmd: 'powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption', timedOut: false
}
After
npm install -g yo generator-code
, I tryyo code
but I get this error, I am just unable to resolve.Error Message
System info
The text was updated successfully, but these errors were encountered: