nodemon: The file nodemon.ps1 cannot be loaded. It is forbidden to run the script on the window system and an error message is reported.

This error message means that the script is prohibited from running on your system, causing nodemon.ps1the file to fail to load. This is usually caused by PowerShell execution policy.

PowerShell's execution policy is a security feature used to restrict the running of scripts. By default, Windows sets the execution policy to "Restricted," which means no scripts are allowed to run.

To solve this problem, you can try the following methods:

  1. Open PowerShell as administrator and run the following command to modify the execution policy:
Set-ExecutionPolicy RemoteSigned

Insert image description here
This will allow running signed scripts on the local machine.

Please note that changing the execution policy may reduce the security of the system. Before changing the execution policy, make sure you trust and understand the source of the script you want to run.

Guess you like

Origin blog.csdn.net/qq_41045651/article/details/131637706