Answer the question
In order to leave comments, you need to log in
How to fix autosave bug + nodemon(npm) plugin?
I use the VScode editor, as well as autosave. I recently found a great plugin that would run the project when saving - this would deprive the hassle of manually restarting the server (ctrl + c, and node index.js) - I write constantly when debugging.
Everything would be cool, since the plugin found such a norm that throws off this routine. But it has a clear conflict with autosave. That is, I remove part of the function by editing something for myself. and the autosave comes by itself, and of course the server restarts. I can imagine right away that just 20 times while I’m editing something in the code, the server restarts :)
So the question is how can I hang it only on ctr+s .
By the way, in the nodemon package.json
file, when installing it, it was necessary to do as below in the code (if this helps in understanding)
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon index.js"
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question