I think you are using Windows, I came across the same problem and it’s because of a security feature in your system.
- Open powershell as an administrator.
- Run the following command
set-executionpolicy remotesigned
- Try again.
This worked for me.
Sources: https://www.faqforge.com/windows/windows-powershell-running-scripts-is-disabled-on-this-system/