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.

Cloudinary image

Zoom pan, gen fill, restore, overlay, upscale, crop, resize...

Chain advanced transformations through a set of image and video APIs while optimizing assets by 90%.

Explore

πŸ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay