nodemon is not working in windows.nodemon -v is showing the below errors
nodemon : File C:\Users\AppData\Roaming\npm\nodemon.ps1 cannot be loaded because running scripts is disabled on this system.
For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170
At line:1 char:1
+ nodemon -v
+ ~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Fix as like below
Open windows powershell as Administrator
- Navigate to WindowsPowerShell\v1.0 and launch powershell.exe
- Set-ExecutionPolicy -Scope LocalMachine Unrestricted
After the Above steps of exection nodemon -v will work