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

2 1

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 

Enter fullscreen mode Exit fullscreen mode

The result you will see is Restricted
1

Step 3
Execute the following command


 Set-ExecutionPolicy Unrestricted 

Enter fullscreen mode Exit fullscreen mode

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.

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video