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
6
votes
3 answers

Is there a way to monitor changes like "nodemon" for Firebase command line?

Is there any way to get the Firebase command line to simply refresh the server as I am applying changes to code similar to what nodemon does for nodeJS? I'm working with Polymer for web.
TheBen
  • 3,410
  • 3
  • 26
  • 51
6
votes
3 answers

mustache-js views don't auto-refresh with nodemon

I've been using nodemon for a while to save me the trouble of restarting the server whenever I edit a file. Now I switched to using mustache.js templates, and the magically-always-up-to-date ceased to work - I now need to manually restart the server…
ripper234
  • 222,824
  • 274
  • 634
  • 905
6
votes
1 answer

nodemon filters styl file changes

I had nodemon wathcing .styl files using the following settings in nodemon.json without any ignore rules: "watch": [ "src/css/*.styl", "src/css/includes/*.styl" ] Any changes were supposed to trigger my build scripts defined in…
user6084529
6
votes
1 answer

Nodemon in VM does not see changes when file edited from host machine

I have a node app which I run inside virtual machine (Virtualbox, Vagrant, Ubuntu) using nodemon for development purposes. The files are located in vagrant's shared folder. When I change an app js file inside virtual machine - nodemon restarts the…
SmxCde
  • 5,053
  • 7
  • 25
  • 45
6
votes
2 answers

npm scripts nodemon - watching js and scss files for changes

I'm experimenting with setting up a dev environment to use NPM only, without the use of grunt.js or bower.js. I followed this tutorial: http://beletsky.net/2015/04/npm-for-everything.html I'm using nodemon to watch my .js and .scss files for changes…
conor909
  • 1,475
  • 14
  • 29
6
votes
1 answer

Nodemon watch option broken

I am using gulp-nodemon config directory includes only one file, server.js. $.nodemon({ script: 'config/server.js', watch: ['config/**/*.js'] }) .on('restart', function () { setTimeout(function () { $.livereload.changed(); }, 1000); …
eguneys
  • 6,028
  • 7
  • 31
  • 63
6
votes
3 answers

Concurrently Run `watch` & `nodemon` with Grunt

I'm just getting started with Grunt and would like to run grunt-contrib-watch [GitHub page] to lint my JavaScript every time a file is modified (with grunt-contrib-jshint [GitHub page]) and run grunt-nodemon [GitHub page] too, concurrently using…
Jonathon Oates
  • 2,912
  • 3
  • 37
  • 60
6
votes
3 answers

Why can't i npm install nodemon or supervisor on OSX 10.8.4?

I'm just trying to install nodemon or supervisor using terminal, and I keep getting this error which I don't understand. I tried running as the administrator with sudo npm install supervisor -g which seemed to work, but than didn't when i…
Squirrl
  • 4,909
  • 9
  • 47
  • 85
5
votes
0 answers

nodemon not watching workspace dependencies

I use nodemon to watch file changes in a TypeScript Node.JS codebase. When a change is detected, esbuild and esbuild-register are used to transpile the code to CommonJS files and the application restarts. The application is part of a monorepo with…
5
votes
0 answers

Unknown file extension error after adding 'type: module' to package.json

I'm working in TypeScript, using modern import statements. Running nodemon (which then uses ts-node) this obviously results in SyntaxError: Cannot use import statement outside a module. Fair enough, so I added "type": "module" to my package.json…
Timmiej93
  • 1,328
  • 1
  • 16
  • 35
5
votes
1 answer

How do I use Babel with Electron?

I want to build an Electron app with ES6 import syntax so I can re-use modules between my Node.js and browser side JS without code duplication and found Electron is frustratingly behind the times on ES6 syntax support. I learned about this magical…
J.Todd
  • 707
  • 1
  • 12
  • 34
5
votes
7 answers

clearing terminal while Nodemon is running?

Is there any way to clear terminal while nodemon is running? I am using Ubuntu 18.04
fuadnafiz98
  • 450
  • 5
  • 15
5
votes
1 answer

Make webpack-dev-server to reuse existing opened tab

I am trying to execute two different scripts using nodemon when it starts and when it restarts. The issue is that nodemon calls both start and restart events whenever it detects a change in a file. So how can I execute two different scripts on…
Ayan
  • 2,738
  • 3
  • 35
  • 76
5
votes
2 answers

how to set nodejs command `--max-http-header-size` with `nodemon --exec "babel-node" .`

I am upgrading my nodejs version from 8 to 10. after upgraded, i can't run my application in any browsers right now. so i've been googled my issue and found out that header size of node 10 has been downsized to 8kb from 80kb. my application header…
Kaslie Kaslie
  • 51
  • 1
  • 1
  • 3
5
votes
0 answers

Docker with nodemon does not reload my api when code changes

I've been working with docker some weeks ago and I was able to hold this issue, stop docker containers and start them over again to see the changes that I had made in my code but now is really anoying because every single change I do have to kill…