npm startcarried out"./node_modules/.bin/nodemon bin/run"
npm startYesnpm run startShorthand
nodemonThe function of the plugin is to modify the file to automatically restart the service after you start the service.
"scripts": {
"start": "./node_modules/.bin/nodemon bin/run",
"koa": "./node_modules/.bin/runkoa bin/www",
"pm2": "pm2 start bin/run ",
"test": "echo \"Error: no test specified\" && exit 1"
}
If you do not consider the automatic restart function, in fact, this code is equivalent to execution.node bin/run
Nodemon After installation When our JS file changes (saving) will automatically hear the server, then we don't need to manually re-stop again. Nodemon is a tool that helps develop Node.js-based applic...
Error: [nodemon] App Crashd -Waiting for File Changes Before Starting ... Nodemon reported an error after installing the server-static, and I later removed the installation. Reason: It may be wrong in...
In the development environment, a tool is often needed to automatically restart the project. Before I contacted the python supervisor, I now found that the supervisior has his presence in many places....
Solution: Delete the nodemon file under C:\Users\17242\AppData\Roaming\npm\node_modules\ successfully installed...
nodemon It's a very useful tool for monitoring any changes to the NodeJS source code and automatically restarting your server so that we only need to refresh the page to see your changes. There is als...
Nodemon reports an error when serving: nodemon: command not found, obviously installed: sudo npm install nodemon -g For dogs, gulp and grunt are the same problem. Npm root found the path is wrong solu...
In this lesson we will install a dependency called nodemon. We already know how to use NPM for installation and management dependencies. Before we start installing express, we will darken Nodemon and ...
Install third-party tools nodemon to solve the problem of frequently modifying code to restart the server. nodemon is a third-party command line tool developed based on node.js. We need to install it ...
After modifying the code, you need to restart the Express app for the changes to take effect. If you repeat this operation every time the code is modified, it will inevitably affect the development ef...
Mac nvm and nodemon installation Mac's nvm installation: At first, it could not be installed according to the operation of Baidu. I searched the official documentation https://github.com/nvm-sh/nvm; F...