nodemon : File C:\Users\saiful islam\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 index.js
~~~~~~~
CategoryInfo : SecurityError: (:) [], PSSecurityException
FullyQualifiedErrorId : UnauthorizedAccess
CodePudding user response:
Have you tried to allow local scripts on your system? Try opening Powershell as admin and paste this command.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
This ensures that locally executed scripts are allowed.
CodePudding user response:
Try deleting your nodemon.ps1 file located at C:\Users\saiful islam\AppData\Roaming\npm directory and rerun the nodemon command from the command prompt (CMD not from PowerShell) and see if it works.
