DEV Community

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

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

Mamun Hossain on August 15, 2020

A solution for running nodemon on local machine error on Windows : nodemon.ps1 cannot be loaded because running scripts is disabled on this syst...
Collapse
 
manutdmohit profile image
Mohit Saud •

"Doesn't work"
PS C:\Windows\system32> Get-ExecutionPolicy
Restricted
PS C:\Windows\system32> Get-ExecutionPolicy Unrestricted
Get-ExecutionPolicy : Cannot bind parameter 'Scope'. Cannot convert value "Unrestricted" to type
"Microsoft.PowerShell.ExecutionPolicyScope". Error: "Unable to match the identifier name Unrestricted to a valid
enumerator name. Specify one of the following enumerator names and try again:
Process, CurrentUser, LocalMachine, UserPolicy, MachinePolicy"
At line:1 char:21

  • Get-ExecutionPolicy Unrestricted
  • ~~~~~~~~~~~~
    • CategoryInfo : InvalidArgument: (:) [Get-ExecutionPolicy], ParameterBindingException
    • FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.GetExecutionPolicyCommand
Collapse
 
salemaljebaly profile image
Salem Aljebaly •

use Set-ExecutionPolicy Unrestricted
not Get-ExecutionPolicy Unrestricted

Collapse
 
rishichoudhary profile image
Rishi-choudhary •

There is set-execution policy

Collapse
 
lcarlin profile image
Luiz Antonio Carlin •

I´m getting the error bellow when I try to change the policies

Set-ExecutionPolicy Process Unrestricted
Set-ExecutionPolicy: Cannot bind parameter 'Scope'. Cannot convert value "Unrestricted" to type "Microsoft.PowerShell.ExecutionPolicyScope". Error: "Unable to match the identifier name Unrestricted to a valid enumerator name. Specify one of the following enumerator names and try again:
Process, CurrentUser, LocalMachine, UserPolicy, MachinePolicy"

Please, what I´m doing wrong ? can You help-me ?
I'm running PowerShell with administrative rights

Collapse
 
immam profile image
Immam •

Thanks very much for your smart help where I was continuously watching the youtube video but failed.This article is just spot on.Thanks again

Collapse
 
technomerit profile image
Mamun Hossain •

Glad to know that it helps you. You're welcome!

Collapse
 
immam profile image
Immam •

Hi , can you please make an cross platform app that consists with calendar and messaging service to the google review page .
Please get back to me as soon as you can .

Collapse
 
masud309060 profile image
Md Masud Rana •

its really great .. thanks a lot brother.

Collapse
 
technomerit profile image
Mamun Hossain •

Welcome brother! Best wishes.

Collapse
 
jeffchavez_dev profile image
Jeff Chavez •

Thanks for this!

Collapse
 
lucas11776 profile image
Themba •

Thanks for post 👍🏾.

Collapse
 
technomerit profile image
Mamun Hossain •

Also thank you for your comment. Wish you all the best.

Collapse
 
banksdada profile image
banks •

you just saved a life from pain and turmoil. Many thanks to you

Collapse
 
technomerit profile image
Mamun Hossain •

My pleasure! I also encourage you to share your own experiences to save others. You're welcome!

Collapse
 
marex74829665 profile image
Marex •

Thanks !!

Collapse
 
zippytyro profile image
Shashwat Verma •

Thanks a lot, man!

Collapse
 
satriobhirawa profile image
satriobhirawa •

thanks for your help!

Collapse
 
agelesszeal profile image
agelessZeal •

It is good solution for me.

Collapse
 
darkosever profile image
Darko Sever •

Yep that works. Thanks dude!

Collapse
 
flt_s3nyo profile image
King •

Thanks a lot, as a beginner i was getting frustrated, this made my day

Collapse
 
shanleo profile image
Tharindu Dhanushka(Shan Leo) •

Thank you for your help

Collapse
 
devanil1806 profile image
Anil Kumar Pradhan •

thnx man..it works

Collapse
 
munnasorder profile image
Arifur Rahman Munna •

Many thanks my nodemon is working now

Collapse
 
davidhero profile image
Davidhero •

Thank you for this sir, this was helpful.

Collapse
 
joyshaheb profile image
Joy Shaheb •

thank you for this helpful article

Collapse
 
ayushgit228 profile image
Ayush Gupta •

Thankyou, because of you I don't have to search for long.

Collapse
 
samsonnegash profile image
samson negash •

Thank you Mamun Abdullah, i fix that problem quickly

Collapse
 
ovoyov profile image
ovoyov •

Thanks a Lot.... Have a nice day

Collapse
 
ladibe profile image
ladibe •

thank you

Collapse
 
rizqiya profile image
Saputra, RW •

it's working for me.. really help

Collapse
 
mohamedlashin98 profile image
Mohamed-lashin98 •

thanks for help

Collapse
 
junioredris profile image
Imthiaz Ragib •

Just loved the solution

Collapse
 
ramesh123lang profile image
RAMESH MARANDI •

Thanks, Sir, this article helps me a lot.

Collapse
 
adiel98 profile image
Adiel •

Thanks !!!

Collapse
 
hemadeveloper profile image
Ibrahim Samir Ibrahim • • Edited

Thank you, Bro

Collapse
 
manishrana profile image
Manish Rana •

It worked thanks

Collapse
 
technomerit profile image
Mamun Hossain •

You're welcome Rana! I am glad that you found it helpful.

Collapse
 
pujakundu profile image
Puja Kundu •

thanks

Collapse
 
erongit1 profile image
EronGit1 •

I opened this account just to comment 'GoodJob and keep going this way'

Collapse
 
clemorcodes profile image
Clement Maina •

Thanks for this🙏

Collapse
 
hari_kun profile image
Cipto Suhari •

this article so helpful because I just read on stackoverflow this issue but I didnt get it.
thank you

Collapse
 
praveenitdev profile image
Praveen Gadikoppula •

Thanks,worked for me. The way you explain is neet and clean :)

Collapse
 
rohanmathewalex profile image
Rohan Mathew Alex •

It did'nt work for me

Collapse
 
mohdimran07 profile image
Mohammed Imran •

Thank you very much for this one click solution....