title: Dynamic installation and loading of Node.js module
body: <p>I am working on a Node.js module A that uses another Node.js module B from NPM. There are new versions of module B published on NPM. I want my module A to dynamically update to the latest versions of module B (module A always depends on the latest version of module B).Also, all the references of the imported module should also be updated dynamically.</p>
  
  <p>I considered using NPM programmatically to install the latest available version of a module if a module is outdated. Are there better solutions to do this dynamically.</p>
  
  <p>Also, how to forcefully update the module references imported through require?</p>
  
  <p>Thanks!</p>