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
462
votes
21 answers

How to watch and reload ts-node when TypeScript files change

I'm trying to run a dev server with TypeScript and an Angular application without transpiling ts files every time. What I found is that I can run .ts files with ts-node but I want also to watch .ts files and reload my app/server. An example of this…
Ieltxu Algañarás
  • 4,654
  • 3
  • 10
  • 7
248
votes
12 answers

Nodemon Error: "System limit for number of file watchers reached"

I'm learning GraphQL and am using prisma-binding for GraphQL operations. I'm facing this nodemon error while I'm starting my Node.js server and its giving me the path of schema file which is auto generated by a graphql-cli. What is this error all…
Rehan Sattar
  • 3,497
  • 4
  • 13
  • 21
169
votes
29 answers

nodemon command is not recognized in terminal for node js server

I am doing node.js server setup from https://scotch.io/tutorials/authenticate-a-node-js-api-with-json-web-tokens. I am new in node.js. I am installing npm install nodemon --save. But when I am run the server with this nodemon server.js. In the…
Varun Sharma
  • 4,632
  • 13
  • 49
  • 103
154
votes
22 answers

nodemon not working: -bash: nodemon: command not found

I'm on a Mac running El Capitan. I have node v5.6.0 and npm v3.6.0. When I try to run nodemon, I get: -bash: nodemon: command not found I thought this may mean that I didn't have nodemon installed, so when I tried to install it using... sudo npm…
Brian O'Neill
  • 4,705
  • 5
  • 22
  • 26
149
votes
4 answers

Nodemon - exclusion of files

I would like to exclude some specific files from monitoring of NodeMon. How can I do this? My existing configuration: nodemon: { all: { script: 'app.js', options: { watchedExtensions: ['js'] } }
Ben Aston
  • 53,718
  • 65
  • 205
  • 331
146
votes
25 answers

How to execute the start script with Nodemon

How can I execute the start script from a package.json file with Nodemon?
Citronen
  • 4,050
  • 4
  • 16
  • 20
136
votes
19 answers

How to fix error- nodemon.ps1 cannot be loaded because running scripts is disabled on this system, (without security risk)?

Error on terminal: nodemon.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies…
112
votes
11 answers

Is there a way to use npm scripts to run tsc -watch && nodemon --watch?

I'm looking for a way to use npm scripts to run tsc --watch && nodemon --watch at the same time. I can run these commands independently, but when I want run both of them, only the first one is executed. eg: "scripts": { "runDeb": "set…
Nicolas Dominguez
  • 1,243
  • 2
  • 10
  • 10
103
votes
31 answers

nodemon not found in npm

I have a problem: nodemon does not run off the npm script (e.g. npm start), but if nodemon is called on the command line outside the npm script, nodemon runs as normal. $ nodemon server.js 14 Feb 22:59:51 - [nodemon] v1.3.7 14 Feb 22:59:51 -…
akul
  • 1,196
  • 2
  • 7
  • 11
94
votes
19 answers

How can I run nodemon from within WebStorm?

I would like to use nodemon from within the WebStorm IDE (version 7). Nodemon watches one or more files in my source folder and restarts the node process (an Express server in this case), when one of the source files changes. How do I configure…
nwinkler
  • 52,665
  • 21
  • 154
  • 168
83
votes
6 answers

How do i watch python source code files and restart when i save?

When I save a python source code file, I want to re-run the script. Is there a command that works like this (sort of like nodemon for node)?
bkinsey808
  • 2,669
  • 3
  • 16
  • 20
72
votes
6 answers

Is there source map support for typescript in node / nodemon?

I have a node project written in typescript@2. My tsconfig has sourceMap set to true and the *.map.js files are generated. When I execute my transpiled *.js JavaScript files via node or nodemon, I only see the error messages relative to the js file…
k0pernikus
  • 60,309
  • 67
  • 216
  • 347
64
votes
12 answers

Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency

I'm doing API with the node and using Mongoose. When I give a yarn dev to start my Nodemon, there is an error in Mongo, I have no idea how to solve this. Would anyone have any ideas? (I'm using the MongoDB Atlas database) Right after the following…
Guilherme Oliveira
  • 738
  • 1
  • 4
  • 6
59
votes
5 answers

nodemon ignore directory

In a Universal Javascript app, I would like nodemon to ignore client directory changes. I have tried the following: "devStart": "nodemon server/server.js --ignore 'client/*' --exec babel-node", "devStart": "nodemon server/server.js --ignore…
softcode
  • 4,358
  • 12
  • 41
  • 68
57
votes
15 answers

I can´t install nodemon globally, "nodemon" not recognized

I want to use nodemon for monitoring my node.js app's, then I execute the next line command: npm install -g nodemon or npm install nodemon -g When I move to my app folder and try to to nodemon app.js The system tells to the next: "nodemon 'is…
RMontes13
  • 2,138
  • 3
  • 16
  • 23
1
2 3
90 91