If for some reason, the default PowerShell module repository PSGallery gets removed. You will need to create it. This is the command.
PSGallery
Register-PSRepository -Default