nodemon

Forever + Nodemon running together

六眼飞鱼酱① 提交于 2019-11-26 23:53:12
问题 Is there any way to have both of this packages running together? So basically I want to have best from both worlds. Running server automatically (and restarting when there is an error) and also automatic updates when there is .js file change happening. 回答1: Toxa was on the right track, the issue that cfogelberg raised is valid, but to avoid that issue you can do the following: forever -c "nodemon --exitcrash" app.js this makes sure nodemon actually exits (rather than giving you the "app

I can´t install nodemon globally, “nodemon” not recognized

纵然是瞬间 提交于 2019-11-26 18:00:04
问题 i wanna 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 not recognized as an internal or external command, program or batch file. 回答1: Since node prefix is not in the PATH ENV variable , any of the globally installed modules are not getting recognized. Please try this. Open cmd prompt npm config get prefix

How can I run nodemon from within WebStorm?

无人久伴 提交于 2019-11-26 15:06:15
问题 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 WebStorm to use nodemon in a Run Configuration , so that the node process is automatically restarted? Without nodemon , I use the following configuration in WebStorm, but have to restart the node process whenever I change something in the source file:

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

纵然是瞬间 提交于 2019-11-26 15:02:28
问题 I'm trying to run a dev server with TypeScript and an Angular application without transpiling ts files every time. I found that I can do the running with ts-node but I want also to watch .ts files and reload the app/server as I would do with something like gulp watch. 回答1: I was struggling with the same thing for my development environment until i noticed that nodemon's api allows us to change it's default behaviour in order to execute a custom command. An example of this would be like

nodemon install error “No valid versions available for timed-out”

﹥>﹥吖頭↗ 提交于 2019-11-26 14:53:47
问题 I am getting this error when trying to install nodemon in a brand new node project. I've created a blank folder named my-project then, inside it, I've executed to creeate a package.json file: npm init -f then when tryed to run npm install --save-dev nodemon And that was the result: npm ERR! code ENOVERSIONS npm ERR! No valid versions available for timed-out I've just update my node version to the latest one and so npm tools. node --version -> v8.9.4 npm --version -> 5.6.0 The funny part is