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
-1
votes
2 answers

Using Nodemon with Docker is not refreshing the project when the codebase changes

I am building a Node.JS application using Postgres as the database. I am using Docker/Docker compose for the development environment. I could dockerise my environment. However there is one issue remain which is the project is not refreshing or…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
-1
votes
1 answer

Error "[nodemon] app crashed - waiting for file changes before starting"

[nodemon] restarting due to changes... [nodemon] starting `node index.js` backend server is running ! database connect node:internal/errors:464 ErrorCaptureStackTrace(err); ^ Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are…
-1
votes
3 answers

JSON.parse() Error SyntaxError: Unexpected token < in JSON at position 0

I'm following along this udemy course on fullstack webdev. Fun so far until I hit this snag. This lesson is about API and JSON and we are making a "Sign Up" email service using Mailchimp API. I have the following constant: And when using nodemon…
user9564579
-1
votes
1 answer

I'm having an issue running Nodemon in my project

I cannot solve this issue. This is the error that appears in the terminal:
-1
votes
1 answer

How do I clear npm errors and get my port to run?

I'm trying to learn how to create an API, and I keep getting errors while trying to run npm run start. { "name": "climate-change-api", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "start":"nodemon index.js" …
-1
votes
2 answers

heroku logs --tail error: sh: 1: nodemon: not found

I am trying to start my web app via heroku cli. after deploying I try heroku open. when I do, it shows me "Application fail" page where they provide a suggestion for me to run the command heroku logs --tail. I see a long list of executions where the…
leadbassist
  • 165
  • 1
  • 11
-1
votes
2 answers

Nodemon not working on new project with express

I have a new project folder configured and running with express.js and the server is running fine on port 3000. I have installed nodemon globally using the sudo command so I expect I don't need to add this as a dependency or locally within the…
Nick
  • 185
  • 2
  • 14
-1
votes
1 answer

nodemon keeps crashing because of route.get() file errors

I'm stuck on the last bit of the fourth MDN tutorial where you're to run nodemon to check out your routes/controllers to see what you've done running them on a localhost. It says I have an error with routing and requires a callback function of an…
Bridgette
  • 9
  • 6
-1
votes
1 answer

/usr/bin/env: ‘node’: No such file or directory

I know this question has been asked many times, but none of the solutions worked for me. I'm desperate! On Windows 10, I've created a simple Vue.js & Node app, following this guide: Full Stack Web App using Vue.js & Express.js which implements a…
Rotem Orbach
  • 132
  • 1
  • 13
-1
votes
1 answer

Why am I unable to install nodemon on my mac

I am getting these errors while installing nodemon on my mac npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/local/lib/node_modules npm ERR! errno -13 npm…
-1
votes
1 answer

Nodemon doesn't start the server

I installed nodemon to devDependencies and set the script "start" : "nodemon server.js". However, when I do npm start, it throws me this error: Error: Cannot find module 'C:\Users\win10\Desktop\nodemon\bin\nodemon.js' at…
Cihan Özcan
  • 103
  • 3
  • 13
-1
votes
1 answer

powershell execution policy unrestriction is not accepitng

enter image description here
Karthik
  • 1
  • 1
-1
votes
1 answer

creating a server and using nodemon but it shows error

nodemon : File C:\Users\shara\AppData\Roaming\npm\nodemon.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1
-1
votes
2 answers

nodemon , app crashed , waiting for file changes before starting

I'm trying to make a to-do app with node.js and mongodb to store the info that users input to the database, but im not sure whats going on. I keep getting this error when i try to run nodemon. I'm new to node.js so maybe i missed something? The code…
neo314
  • 1
  • 2
-1
votes
1 answer

The router in my react app throws an error

This is the error: throw new TypeError('app.use() requires a middleware function') ^ TypeError: app.use() requires a middleware function at Function.use…