Home >Web Front-end >JS Tutorial >How to solve the problem of frequent manual restart after node modification

How to solve the problem of frequent manual restart after node modification

php中世界最好的语言
php中世界最好的语言Original
2018-05-22 09:20:191645browse

This time I will introduce to you how to solve the problem of frequent manual restart after node modification. What are the precautions to solve the problem of frequent manual restart after node modification. The following is a practical case, let's take a look.

During the development process, every time after modifying the code and saving it, we need to manually restart the program to see the effect of the changes. This tedious problem can be solved by using supervisor, global installation supervisor:

npm install -g supervisor

Run supervisor --harmony server startup program, as shown below:

supervisor will monitor the files with node and js suffixes in the current directory. When these files are changed, supervisor will automatically restart the program.

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

detailed explanation of steps for using nodeJs crawler

vscode debugging and compiled js code step analysis

The above is the detailed content of How to solve the problem of frequent manual restart after node modification. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn