after configuring my PowerShell and installing Starship.rs, I wanted to install oh-my-posh. The instruction on the website for this is Install-Module oh-my-posh -Scope CurrentUser. I tried this but I get this error every time:
Administrator rights are required to install or update. Log on to the computer with an account that has Administrator rights, and then try again, or install by adding "-Scope CurrentUser" to your command. You can also try running the Windows PowerShell session with elevated rights (Run as Administrator).
I tried these things:
- Run PowerShell as an Admin by right clicking the application, selecting the option and accepting the prompt
- Change the command to this
Install-Module -Scope CurrentUser oh-my-posh
But this didn't work neither. How can I install oh-my-posh now?
Some Information:
- I am running Windows 11 Beta on a Surface Pro 7
- I am running PowerShell 7.1.5