Issue while running “nodemon server.js”
While following a tutorial on Medium.com, I encountered an error when running the command “nodemon server.js“. My system runs Windows 10 Professional and has all the necessary tools for the tutorial. After conducting some research through Google, I discovered a straightforward solution to resolve this issue. Here are the steps:
The system has Windows 10 Professional and all the necessary tools to perform that little tutorial. After a bit of research (Googling) I found the most straightforward manner to resolve this blocker was to do the following steps.
- Open the “PowerShell Developer Settings” in Windows.
- Enable the “Developer Mode” option.
- Scroll to the bottom of the “PowerShell Developer Settings” window and modify the execution policy to allow PowerShell scripts to run without signing.
- Execute the command “Set-ExecutionPolicy RemoteSigned -Scope CurrentUser” and confirm with “Y” when prompted.
Try running the command “nodemon server.js” again. It should work at this point.
If you have a more efficient and convenient fix for this problem, please feel free to share it.