I am new to NodeJS so probably I am doing some mistakes.
I have written a bunch of code in an external file called myapp. I start NodeJS for windows and from the interpr
I solved this by adding the following above the require statements:
require
Object.keys(require.cache).forEach(function(key) { delete require.cache[key] })
Taken from @Dancrumb's comment here