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
$ node index.js
file:///C:/flow/node_modules/windows-release/index.js:42
stdout = execa.sync('powershell', ['(Get-CimInstance -ClassName Win32_OperatingSystem).caption']).stdout ||'';
^
TypeError: execa.sync is not a function
at windowsRelease (file:///C:/flow/node_modules/windows-release/index.js:42:19)
at file:///C:/flow/index.js:3:13
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)
Node.js v20.14.0
error Command failed with exit code 1.
Cause
execa release v6.0.0 included a breaking change that removed the execa.sync function. When windows-release was upgraded to v6, the code was not modified to reflect this change.
The text was updated successfully, but these errors were encountered:
Environment
Description
Calling
windowsRelease()
throws an error:Cause
execa
release v6.0.0 included a breaking change that removed theexeca.sync
function. Whenwindows-release
was upgraded to v6, the code was not modified to reflect this change.The text was updated successfully, but these errors were encountered: