DEV Community

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

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