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

singhanuj620

Anuj Singh

Posted on March 19, 2021

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

💖 💪 🙅 🚩
singhanuj620
Anuj Singh

Posted on March 19, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related