Nodemon – "clean exit – waiting for changes before restart" during setup

I am trying to set up a RESTful API with Node and Postgres. I have run into a problem where whenever I attempt to run the server (using npm start) to test it locally, I get the following output:

[nodemon] 1.14.10 [nodemon] to restart at any time, enter rs [nodemon] watching: . [nodemon] starting node index.js server.js
[nodemon] clean exit – waiting for changes before restart

After searching online for quite some time, I cannot find too many resources on what exactly “clean exit – waiting for changes before restart” exactly means, especially in this case.

This is my queries.js file:

  1 var promise = require('bluebird');
  3 var options = {
  4   // Initialization Options
  5   promiseLib: promise
  6 };
  8 // created an instance of pg-promise, override default pgp lib w bluebird
  9 var pgp = require('pg-promise')(options);
 10 var connectionString = 'postgres://localhost:3000/actions';
 11 var db = pgp(connectionString);
 13 // add query functions
 15 module.exports = {
 16   getAllActions: getAllActions,
 17 //  getSingleAction: getSingleAction,
 18 //  createAction: createAction,
 19 //  updateAction: updateAction,
 20 //  removeAction: removeAction
 21 };
 23 function getAllActions(req, res, next) {
 24   db.any('select * from acts')
 25     .then(function (data) {
 26       res.status(200)
 27         .json({
 28           status: 'success',
 29           data: data,
 30           message: 'Retrieved ALL actions'
 31         });
 32     })
 33     .catch(function (err) {
 34       return next(err);
 35     });
 36 }

Here is my index.js file:

  3 var express = require('express');
  4 var app = express();
  5 var router = express.Router();
  6 var db = require('./queries');
  8 // structure: expressInstance.httpRequestMethod(PATH, HANDLER)
  9 app.get('/api/actions', db.getAllActions);
 10 //app.get('/api/actions/:id', db.getSingleAction);
 11 //'/api/actions', db.createAction);
 12 //app.put('/api/actions/:id', db.updateAction);
 13 //app.delete('/api/actions/:id', db.removeAction);
 15 module.exports = router;

Any thoughts on what could be going on here? Thanks in advance.

195 thoughts on “Nodemon – "clean exit – waiting for changes before restart" during setup”

  1. I nothing but wanted to portray you that I am already doing heartier with your formula of care because of the One avenue that I know this is by my return to what happened on the weekend. My save fell in a cycling misadventure on Sunday and broke his collar bone. After four hours in Emerg at Peace Clever, he was sent home with a catapult and headache killers (nasty narcotics), and a referral in the service of an Ortho specialist. The break is quite inconsolable, although if it had pierced the skin, he would procure had surgery right away. It wishes essential some nuts and bolts to secure it appropriate for healing and to strengthen/protect it in future. Craig is not a complainer always and has a excessive play after pain. He can’t coextensive with picture the doctor til Thursday, then surgery will be booked. The Ortho doc said the bones can sit tight til then. I conjecture, the human should not comprise to wait. Gruesome on the side of Craig of course but, here is the well quarrel payment my emotional comeback:in preference to of crying, I got maniacal and took action! We are universal to make enquiries Craig’s blood doc in Vancouver today to struggle respecting quicker care.

  2. I cannot fabricate a critical opine regarding this pharmacy. As a chemist’s shop it stocks all items you coerce, marker stave and assistants are every supportive, courteous, welcoming and extraordinarily empathetic with clients. My prescription is at all times at one’s disposal on schedule and at all times complete. The pharmacists are also entirely helpful, well informed and aware of my healthfulness needs. If i alteration medication junior to instruction from my GP, the pharmacists often examine the change-over and its implications with me and wish till the end of time touch me to sight how i am tolerating the formula change. I bear that i can inquire to advice at anytime and nothing is ever too much trouble. In effectiveness a alien care offered close to an sovereign z-pack us and i cannot inquire on anything bette

  3. Pingback: aralen cheap
  4. Pingback: molnupiravir 200
  5. Pingback: buy tizanidine
  6. Pingback: clomid discount
  7. Pingback: zanaflex 48 mg

Leave a Comment