DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

Cover image for How to fix nodemon error- nodemon.ps1 cannot be loaded because running scripts is disabled on this system
Anuj Singh
Anuj Singh

Posted on

How to fix nodemon error- nodemon.ps1 cannot be loaded because running scripts is disabled on this system

Error_Img

The problem here is with "Get-ExecutionPolicy" value is Restricted. We have to change it to Unrestricted

Step 1
Open Windows PowerShell with Run As Administrator

Step 2
Execute the following command

Get-ExecutionPolicy

The result you will see is Restricted
1

Step 3
Execute the following command

Set-ExecutionPolicy Unrestricted

2

Done
3

and it's fixed ๐Ÿค—๐Ÿค—๐Ÿค—๐Ÿค—
4

Top comments (2)

Collapse
 
dbarwikowski profile image
Daniel Barwikowski

Yes, but actually no. It might not work in your workstation. Depends on the policy of your domain.

Collapse
 
singhanuj620 profile image
Anuj Singh

I agree, but this can be one of the solutions.

19 Valuable Github Repositories for Beginners

19 Valuable GitHub Repositories for beginner devs looking to take the first step into the web development career.