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
8
votes
1 answer

How to rebuild node.js addon when source changes

I have a node.js app and I have created a native addon. (In case you need background info, native addons for node.js can be created like this). In my development environment I want it to watch source files (these are C++ source files, in this case)…
Wyck
  • 10,311
  • 6
  • 39
  • 60
8
votes
9 answers

Node Nodemon Error: Cannot find module 'C:\Program Files\Git\node_modules\nodemon\bin\nodemon.js'

I am a beginner at NodeJS stuff. Environment is Windows 7 64 Bit. Node is installed and working. NPM is also working fine. Nodemon is installed. (In App and also Globally) Now when I run the command: "nodemon server.js" or just "nodemon" it…
Ankit Prajapati
  • 1,425
  • 3
  • 14
  • 22
8
votes
1 answer

Nodemon and Redwood-Broker

I am running Nodemon in an express app, and I've done no special configuration; in my package.json I have this: "scripts": { "start:dev": "nodemon app/app.js" } ... Everything goes fine until I make changes, and Nodemon goes to restart. I get an…
hhoburg
  • 373
  • 2
  • 10
8
votes
1 answer

How to watch multiple folders with nodemon?

I need something like this: nodemon.json: [{ "watch": ["src/api-gateway"], "ext": "ts", "ignore": ["src/**/*.spec.ts"], "exec": "ts-node ./src/api-gateway/main.ts" }, { "watch": ["src/services/ping-service"], "ext": "ts", "ignore":…
Vladimir
  • 1,751
  • 6
  • 30
  • 52
8
votes
3 answers

nodemon is unable to find ts-node in exec-parameter

I'm trying to use ts-node with nodemon. Both are installed using yarn and my package.json has the following structure: { "name": "yarnTest", "version": "1.0.0", "main": "index.js", "license": "MIT", "devDependencies": { …
Nrgyzer
  • 783
  • 1
  • 14
  • 38
8
votes
1 answer

nodemon not restarting after typescript change

My nodemon is not restarting after a typescript file change. Currently I'm using the following to run and compile my changes: "dev": "nodemon -e ts,json --exec \"npm run compile\"", "compile": "tsc && node src/index.js" it should detect ts changes…
Maxim
  • 3,836
  • 6
  • 42
  • 64
8
votes
4 answers

nodemon recursive watch issue?

I have installed nodemon using command: npm install nodemon -g Having done that I changed "start": "node ./bin/www" to "start": "nodemon ./bin/www" Output in Console on running npm start : [nodemon] 1.11.0 [nodemon] to restart at any time,…
SamuraiJack
  • 5,131
  • 15
  • 89
  • 195
8
votes
2 answers

VS Code automatically restart debugger on file save like nodemon

Is there a way to automatically restart the node debugger in VS Code when a source file changes like nodemon?
ermish
  • 1,160
  • 2
  • 13
  • 26
8
votes
2 answers

NodeJS - WinstonJS - Clear the log file

I'm using WinstonJS for logging to a file, and nodemon to restart when I update my code. var winston = require('winston'); var logger = new (winston.Logger)({ transports: [ new (winston.transports.File)({ level: 'silly', …
Stephen Last
  • 5,491
  • 9
  • 44
  • 85
7
votes
3 answers

Nodemon - specifying extension watch list using config files

Is there a way to specify watch list using config files instead of command line? Command line method in nodemon's doc: I attempted to use a nodemon.json config file with the following: { "ext": ["js", "json", "hbs", "html"] } Returned an…
Enrichdev
  • 83
  • 2
  • 8
7
votes
0 answers

EACCES: permission denied with fs-extra only using nodemon

I am attempting to use the move method from the fs-extra npm module. It works for moving files and empty directories, but every time I try to move a non-empty directory while using nodemon, I get this error: [Error: EACCES: permission denied, rename…
Jacolack
  • 1,365
  • 2
  • 11
  • 25
7
votes
1 answer

Can not run Nodemon in node project build with Typescript (In Windows)

Node project is built with Typescript and there are three script in package.json file but when I run it shows ... If i run this project in ubuntu it works fine but not in windows Image of output terminal but after this nodemon is not start to run…
Jimit Raval
  • 75
  • 1
  • 10
7
votes
2 answers

VS Code not hitting breakpoints for Node app running in Docker Container

Summary I'm running a node app inside a docker container can't get the VS code debugger to hit breakpoints. Docker Setup The docker container exposes port 5859. Inside the container the node app is ran with this command: nodemon -L --watch src…
colinwurtz
  • 703
  • 1
  • 7
  • 23
7
votes
3 answers

How to fix "Cannot find runtime 'nodemon' on PATH. Make sure to have 'nodemon' installed."?

I try to debug nodejs app with nodemon on visual studio code so that I can auto restart the debugger each time I save my code. However, it just kept poping up this error message when I run my debugger on visual studio code: "Cannot find runtime…
LittleTeemo
  • 184
  • 2
  • 12
7
votes
5 answers

nodemon "restarting due to changes..." repeatedly displays in VSCode and slows down every restarting process

I use nodemon version 1.18.9 (Latest version as of today). I use Visual Studio Code (VSCode). I open a terminal and execute nodemon dev-server.js but it displays this repeatedly restarting due to changes... as follows and after a few seconds it…
holydragon
  • 6,158
  • 6
  • 39
  • 62