Как перезагрузить модуль в node.js
delete require.cache[require.resolve('./path-of-file')];
require('./path-of-file');
Inquisitive Ibex
delete require.cache[require.resolve('./path-of-file')];
require('./path-of-file');