vue --version
+ ~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

Open PowerShell with administrator privileges:

Search for "PowerShell" in the Windows search bar
Right-click on "Windows PowerShell" and select "Run as administrator"
Run the following command in PowerShell to change the script execution policy:
𝑃PowerShell
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser

After running this command, you can try running the vue --version command again and you should be able to see the installed version of the Vue CLI.

If the issue persists even after this, you can try using a different shell environment, such as Git Bash or Windows Terminal, to run the Vue CLI commands.