When I start up my application in node.js
node app.js
and then make a change in app.js file, I have to exit node.js and restart it in order for this change to show up in my browser.
Is node.js caching the file at startup? Is there a way to avoid this, at least in development mode?
Modules are cached when they are required. Take a look at http://github.com/isaacs/node-supervisor as a solution to your problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With