Questions tagged [nodemon]

nodemon is an automated process that monitors the directory for a given node application. When files change in this directory, nodemon automatically restarts the node application.

nodemon is an automated process that monitors the directory for a given node application. When files change in this directory, nodemon automatically restarts the node application.

Basic usage

nodemon [your node app]
nodemon ./server.js localhost 8080
1355 questions
5
votes
2 answers

Why I am not able to use mocha through nodemon?

I am trying to run test cases using mocha framework. I am trying to run it through nodemon, but getting an error. I have installed nodemon already through npm install nodemon and similarly with mocha. How do I run my project through nodemon so that…
anshul
  • 661
  • 9
  • 27
5
votes
1 answer

How do you hide the "[nodemon] clean exit - waiting for changes before restart" message?

I don't want to see that message whenever I save a file in my project. I already have { "events": { "start": "node -e 'console.clear()'" } } in my nodemon.json to indicate my project has restarted.
sdfsdf
  • 5,052
  • 9
  • 42
  • 75
5
votes
1 answer

Babel Transpiler failing to run with Nodemon

Issue: Unable to use Babel Transpiler with Nodemon Details: In package.json I have: "scripts": { "start": "nodemon --exec babel-node --presets=es2015 -- src/app.js" }, "dependencies": { "nodemon": "^1.18.4" }, "devDependencies": { …
user8310317
5
votes
5 answers

nodemon - Internal watch failed: ENOSPC: no space left on device, watch '/home/user/Documents/github/sendMail-lib/3808.txt

I am getting an error while running my server file using nodemon. When I type the command nodemon, I get the following output. [~/D/g/sendMail-lib|3.6.5] ‹master*› »»»» nodemon 0|15:35:32 [nodemon]…
Abdus
  • 192
  • 3
  • 10
5
votes
4 answers

Nodemon kept looking for index.js

My Nodemon kept start and looking for index.js, but I want to use app.js as most people now use app.js. How do I update my nodemon to look for app.js instead ? I tried to uninstall, reinstall is not help. ⚡️ vidjot nodemon [nodemon]…
code-8
  • 54,650
  • 106
  • 352
  • 604
5
votes
3 answers

Nodemon ''npm' is not recognized as an internal or external command

I realize that this is most likely a duplicate question. I'm new to nodemon and I'm trying to establish a server for a Vue JS project with nodemon. I'm trying to run eslint with nodemon and can't figure out why I keep getting the error message. If I…
Brian Patrick
  • 333
  • 5
  • 18
5
votes
2 answers

Disable warning message for eslint rule not being found

I'm working on getting eslint working in my app for the first time. I have it mostly working, but since I've started disabling some of the rules I imported my browser console and command line have started being cluttered up with the same…
Jon_B
  • 969
  • 4
  • 16
  • 24
5
votes
1 answer

Run npm script with nodemon command

I am testing GraphQL Server from Apollo and what to integrate nodemon to it. Here's sample file structure : build/ src/ server.js Here my npm scripts looks like this "scripts": { "start": "babel --presets es2015,stage-2 server.js -d build/ && …
udarabibile
  • 503
  • 1
  • 6
  • 16
5
votes
2 answers

Nodemon watch all project directories

I believe nodemon is supposed to watch all directories for changes by default (expect for node_module, etc). nodemon /bin/www 3000 But it's only monitoring changes to files in the root folder. nodemon /bin/www 3000 [nodemon] 1.9.1 [nodemon] to…
BAR
  • 15,909
  • 27
  • 97
  • 185
5
votes
1 answer

How can I run gulp-nodemon in debug mode?

I have tried: var nodemon = require('gulp-nodemon'), nodemon({ script: 'src/server.js', debug: true }); However, the debug flag isn't getting passed along to node
linuxdan
  • 4,476
  • 4
  • 30
  • 41
5
votes
1 answer

Memory leak caused by gulp & nodemon

I have this simple gulpfile that basically compiles some less files and triggers livereload. I also have nodemon to restart the server when code is changed. var gulp = require('gulp'), less = require('gulp-less'), autoprefixer =…
Kris
  • 151
  • 2
  • 11
5
votes
0 answers

Node.js 10-20 sec loading time when restarting

I am running node.js with nodemon and express js. Whenever I make some random changes it takes forever to load the page after a restart (then after 20-30 sec it's normal loading). The problem is frustrating because I need to wait 20-30sec for each…
OGLoc
  • 53
  • 1
  • 5
5
votes
2 answers

Gruntjs with grunt-nodemon, watch and jshint

I'm trying to run GruntJS with those 3 plugins so it can watch for changes and first: lint the file and then reload express server. My problem with the config below is that if jshint lint the file, nodemon doesn't run and vice versa. //…
mdv
  • 925
  • 3
  • 14
  • 28
5
votes
2 answers

Nodemon is losing console output when the process is crashing

I am not sure if this is purely Windows issue. I don't have option to test anywhere else. Given this really simple code (Coffeescript): console.log('Calling console.log') console.error('Calling console.error') console.log('Calling console.log second…
FredyC
  • 3,999
  • 4
  • 30
  • 38
4
votes
2 answers

Running Nodemon in Docker Container

I'm trying to run Nodemon package in a Docker Network with two services, NodeJs and MongoDB. When I run the app with npm start, nodemon works: I can connect to localhost:3000 and I have the changes in real time. But as soon as I run npm run docker…
Asia Piazza
  • 95
  • 2
  • 9