The installation of the supervisor is also simple:
Install directly with NPM you can type the command: Npm-g Install Supervisor
Note here that supervisor must be installed to the global, if you do not install to the global, the error command will prompt you to install to the global.
If you do not want to install to the default global, you can modify the global path to the current path yourself
NPM config set prefix "path"
After installation, you can use supervisor to start the service.
Supervisor App.js
The boot is exactly like this.
Modify, and then refresh
Memory will be accessed directly in the future to avoid repeated loading
This design of node. JS, while improving performance, is not conducive to the development of debugging,
Because we always want to see the effect as soon as we develop it, instead of terminating the process and restarting it every time.
Supervisor can help you implement this feature, it will monitor your code changes, and automatically restart node. js