Hello, @Tushar Vasant Dalvi !
What version of PowerShell are you using? This is the list of initial troubleshooting steps:
- Repository registry: If your repository registry is in a bad state, you may need to unregister and then register the repository again (Register-PSRepository -Default, where
-Default
registers PSGallery). - TLS 1.2: Some people have reported success when using TLS 1.2 by running
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
- Scope: Although you've set your scope here, setting
-scope
tocurrentuser
may be helpful
Let me know if this worked for you! If not, we can do some more troubleshooting.
Resources: