Errors and solutions when installing nodemon and using nodemon

Install nodemon

1. Install node.js (official website: https://nodejs.org/en/) and configure the npm environment    npm Taobao mirror

2.win+r and enter cmd to open the console

3. Import npm install -g nodemon (nodemon official mail(nodemon - npm))

4. Enter nodemon -v in the console to check whether the installation is successful.

nodemon is a tool that helps develop projects based on node.js application

 Errors and solutions when using nodemon

1. : First, window + r, enter in the consolepowershell or cmd a>

2 : Then enter -- on the command line set-ExecutionPolicy RemoteSigned;

     Then a large red font error will appear, then in the options that appear, enter Enter

3. Then enter the command incommand line--- Set-ExecutionPolicy -Scope CurrentUser< /span> RemoteSignedAfter that, we will be prompted to enter, and then enter-- 

 4. After inputting, the first result will appear. Enter again A Done

 5. Enter get-ExecutionPolicy to verify whether it is successful. The system replies Restricted, indicating that the status is prohibited; if RemoteSigned is prompted, it means success.

Adjustment process

 window + r -->Enter powershell-->Enter set-ExecutionPolicy RemoteSigned-->Enter A-->

Set-ExecutionPolicy -Scope CurrentUser-->RemoteSigned -->输入A

Guess you like

Origin blog.csdn.net/m0_65085680/article/details/127290508