Describe the bug
ran this command:
E:\GitSwagger\azure-powershell\src\Network\Network.Management.Sdk>autorest --use:@autorest/powershell@4.x
It failed with this error:
C:\Users\manverm\.autorest\@autorest_powershell@4.0.704\node_modules\@autorest\powershell\dist\plugins\sdk-generate.js - FAILURE {"code":"ERR_INVALID_ARG_TYPE"}
fatal | TypeError [ERRINVALID_ARGTYPE]: The "path" argument must be of type string. Received undefined
fatal | Process() cancelled due to failure
error | Error: Plugin generate reported failure.
error | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.
Repo: https://github.com/mansi-verma-1510/azure-powershell/tree/manverm/release-powershell-Microsoft.Network-2024-03-01
**Expected behavior**
I tried reinstalling Node and Autorest but still hitting this same error. What can I do to resolve this?
Node version: v20.16.0
Before filling a bug
Describe the bug ran this command: E:\GitSwagger\azure-powershell\src\Network\Network.Management.Sdk>autorest --use:@autorest/powershell@4.x It failed with this error: