最佳答案
是的,这是 npm 3.x 中的新功能,您可以在这里阅读:
https://github.com/npm/npm/releases/tag/v3.0.0
Your dependencies will now be installed maximally flat. Insofar as is possible, all of your dependencies, and their dependencies, and THEIR dependencies will be installed in your project's
node_modules
folder with no nesting. You'll only see modules nested underneath one another when two (or more) modules have conflicting dependencies.
基本上,它现在以尽可能少的嵌套处理依赖关系。
关于node.js - NPM 在错误的地方安装依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32727336/