fast-cli icon indicating copy to clipboard operation
fast-cli copied to clipboard

Solve Error When Installing `fast` On Windows 10 Via PowerShell

Open taljacob2 opened this issue 2 years ago • 0 comments

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

image

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:

image

taljacob2 avatar Sep 17 '22 09:09 taljacob2