You may face this same issue in your development environment on Windows operation systems, so let fix it!
Nodemon
nodemon is a development process manager for node JS, which basically solves a problem of the node by automatically restarting the node JS server whenever a file content got changed in the development environment.
THE ISSUE?
nodemon.ps1 cannot be loaded because running scripts is disable on this system
We get Nodemon Unauthorized Access error because nodemon is restricted by ExecutionPolicy (a windows term).
Fix nodemon.ps1 cannot be loaded because running scripts is disable on this system
This is really very simple to solve, just follow the following 5 steps.
- Run Powershell as Administrator.
- Type ‘Get-ExecutionPolicy’ and hit enter (Optional)
Get-ExecutionPolicy
- Type ‘Set-ExecutionPolicy Unrestricted’ and hit enter
Set-ExecutionPolicy Unrestricted
- Here Prowershell prompt for confirmation, Press Y
- Type ‘Get-ExecutionPolicy’ and hit enter (Optional)
Get-ExecutionPolicy
Now what?
You ready to start your nodemon as usual. Feel free to ask anything in the comments below!
1 thought on “Fix nodemon.ps1 cannot be loaded because running scripts is disable on this system | Nodemon Unauthorized Access”
Thanks for this post!