Questions tagged [node-dev]

Node-dev is a development tool for Node.js that automatically restarts the node process when a script is modified.

Installation

npm install -g node-dev

Basic Usage

node-dev foo.js

Resources

17 questions
5
votes
1 answer

Node-dev doesn't run continuously

I've got small problem with node-dev. I installed it accordingly to directions in readme, and it runs when I type command for example: node-dev somescript.js, but it runs only once, just like I used node without -dev. There is no restart when I…
4
votes
0 answers

node-dev is giving Error: uv_signal_start EINVAL

I have just started learning node.js and found about node-dev. When I run a simple hello world script using node-dev I get the following error: $ node-dev script.js node.js:762 throw errnoException(process._errno, 'uv_signal_start'); …
Nikhil Bhandari
  • 1,584
  • 2
  • 16
  • 34
2
votes
1 answer

node-dev not installing and runs only once

I am new to nodejs and i am trying to run the following command sudo npm install node-dev -g I get the following message npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys /usr/local/bin/node-dev ->…
FarheenP
  • 349
  • 1
  • 2
  • 11
2
votes
1 answer

Detect app restart under node-dev

I am developing Node.js application using Node-dev. Each time I save the script of the application (press Control-S) node-dev will restart my app. Now the question, can I detect the restart withing the application, so that I can save some data…
exebook
  • 32,014
  • 33
  • 141
  • 226
2
votes
1 answer

toggle node-dev for certain requires

Is there a way to toggle restarting nodejs for only certain files using node-dev or the like? I've looked and it seems require.extensions is an object that holds the extensions in which to restart for, though deleting it doesn't seem to do anything.…
dansch
  • 6,059
  • 4
  • 43
  • 59
2
votes
1 answer

Globally installed node-dev causes error "command not found"

So that I don't have to keep restarting node.js during development I'm trying to use node-dev. Unfortunately, when I try to run node-dev from terminal I receive the error: $ node-dev server.js -bash: node-dev: command not found I have globally…
ahsteele
  • 26,243
  • 28
  • 134
  • 248
1
vote
1 answer

How to run 2 application with different node version using pm2

I am following microservice architecture for my application. I have 7 microservices few running on the node and a few are on python and go. 2 of the microservice have multiple instances (i.e. running in cluster mode). All microservices are managed…
1
vote
1 answer

Node.js v17.5.0 [nodemon] app crashed - waiting for file changes before starting

Creating node.js connection with mongodb. MongoDb connection in error Not getting app is running 8000 and shows "nodemon app crashed waiting for file changes before starting " const mongoose = require('mongoose'); const express =…
Praney Pareek
  • 49
  • 1
  • 5
1
vote
1 answer

Ignore filename extension for child_process fork using node-dev and Typescript

I have a project written in Typescript, and I'm using node-dev alongside ts-node in my local enviroment for development. I'm using child_process's fork method to instantiate a subprocess, like so: fork(path.join(__dirname, './worker.ts')); This…
Francisco Hanna
  • 1,137
  • 1
  • 11
  • 27
1
vote
2 answers

node-dev not recognized as an internal or external command

I am using Windows 8 pro 64-bit PC, @2012 and My node version is v6.9.4 npm and node this command work very well, but node-dev command doesn't work and is not recognize as an internal or external command. I set the user variable path to:…
Kousher Alam
  • 1,005
  • 1
  • 15
  • 30
0
votes
1 answer

server Started on Port: undefined in undefinedmode

const app=require('./app') const dotenv =require('dotenv'); const PORT=3000; dotenv.config({path:'backend/config/config.env'}) app.listen(process.env.PORT,()=>{ console.log(`server Started on Port: ${process.env.PORT} in…
0
votes
0 answers

Unable to --watch directory with node-dev

I am trying to watch only specific directories while starting node-dev because of the issue with multiple watches that causes; Error: watch /usr/src/app/node_modules/common-tags/lib/stripIndent/stripIndent.js ENOSPC I tried passing the watch flag…
0
votes
1 answer

Node js error: [nodemon] app crashed - waiting for file changes before starting

After importing the expressEdge I got stucked. const path =require('path'); const expressEdge = require('express-edge'); const express = require('express'); const app = new…
latbabs
  • 5
  • 1
0
votes
1 answer

How to refer my package.json from /dist/app.js

For my web application, when I try to import a version tag from package.json to app.js (/src/app.js), which is one level up to app.js, the local run works fine. But when I try to run from development by generating a dist folder, the code does not…
0
votes
1 answer

execute npm-task on every node-dev restart

I currently have a dev-setup with node-dev and iIrecently integrated tsoa into the setup to generate a swagger file and the express-routes for my app. I already added all the necessary steps to generate my routes but right now its a manual process…
Eik W.
  • 51
  • 1
  • 5
1
2