I'm trying to run nodemon, but when I do, it gives me the following error:
nodemon : File C:\Users\dyzha\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 app.js
+ ~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityExcep
tion
+ FullyQualifiedErrorId : UnauthorizedAccess
I've tried uninstalling it and reinstalling it, npm install -g nodemon
, and npm install nodemon --save-dev
.
Type Get-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
, it will change the Get-ExecutionPolicy
to RemoteSigned
and allow you to run Nodemon.