fast-cli
fast-cli copied to clipboard
Solve Error When Installing `fast` On Windows 10 Via PowerShell
Hi,
I wanted to share with you a solution for an error I received when installing fast
on Windows 10 via PowerShell.
It may be beneficial to add this to a "troubleshooting" documentation of some sort.
Steps I Made For Installation
I installed fast
on Windows 10 via PowerShell, with:
npm install --global fast-cli
The installation had finished successfully, and I wanted to run fast
with:
fast
And I received the following error:
fast.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at
Solution
So I searched for it on StackOverflow here, and it seems that it got fixed by running the command:
set-ExecutionPolicy RemoteSigned -Scope CurrentUser
And then fast
worked fine from any PowerShell window (not only the window that I just ran that command on).
So in total the whole process looks like this: