When using NVM, or otherwise switching between Node.js versions, node_modules has to be rebuilt for each Node version. Would it be possible somehow use a different node_modules directory for each version, instead of having to rebuild the contents everytime you switch between versions?
something like:
node_modules_v8/
node_modules_v7/
node_modules_v6/
Maybe there is a better way to do this, not sure.