handling duplicate npm packages
问题 I have submodules that install the same npm packages. Their node modules install same npm packages as other node modules in the repo. How can i consolidate all of the npm packages into one package.json file so that there are no duplicate packages installed? 回答1: @slebetman is correct. Libraries may share dependencies, but they will likely use different versions of each. Also, shameless plug to a very similar question I answered a while back where someone was essentially asking "Why not