I would like to know how to manage dependencies updates between branches.
Example:
- Working on branch A with a module in v3
- Updating the module via npm on branch B
- Working on branch A again
Since modules in node_modules are the same between branches, the module is still in v4 when back on branch A. This generates an error because a function doesn't exist in v4 anymore.
Is there a way to manage this without having to re-install the correct version each time we switch branches ?