Combining WebStorm 7 Live Edit with Nodemon

1.6k Views Asked by At

I was able to get live edit working following these instructions: running-and-debugging-node-js

And I was able to get nodemon running following this post: How can I run nodemon from within WebStorm?

However, I am unable to combine the two configurations to get live edit working with nodemon...

If I add nodemon parameters to my live edit config it stops working

ideas?

Thanks

2

There are 2 best solutions below

0
On

Do you have nodemon added to your package.json?

"devDependencies": {
  "nodemon": "~1.3.7"
},

or did you install nodemon with the --dev flag which would have added that for you? e.g. install nodemon --dev

3
On

Works fine for me (WebStorm 7.0.1). here is my nodemon run configuration (I'm on Windows 7):

**Configuration tab**

Working directory: my project dir

JavaScript file: ~\AppData\Roaming\npm\node_modules\nodemon\nodemon.js

Application parameters: app.js

**Browser/LiveEdit tab**

'After launch' checked

'with javascript debugger' checked

http://localhost:3000/index.html

Whe I run this configuration in debugger, all changes made to html/css (served using connect.static) are 'live'

If similar configuration doesn't work for you, can you provide a sample project that shows up your problem?