code for nodemon debug code example
Example: why vs code is not running nodemon
in your terminal write : 'npm i --save nodemon' without coataions to install nodemon in VS Code then after installation write 'nodemon yourServerFileName.js' without coatations. This will solve your issue