How to install AutoRest correctly?

896 Views Asked by At

I installed nodejs 16.14.0 LTS version on my VM. I also have dotnet 6 installed on it. I installed autorest and then when I run the command PS doesn't recognize it at all. The screenshot below is a Powershell 7 session. enter image description here

On another VM it works perfectly fine.

I tried to wipe it out, re-install, uninstall and install again, reset, but nothing helped so far. Any suggestions are welcome.

1

There are 1 best solutions below

0
silverbackbg On

In order to make it work I had to add the following path to the User environment variables:

%USERPROFILE%\AppData\Roaming\npm