1
px1981 OP 而且 url 的 package.json 也发生了变化
|
2
for8ever 2015 年 12 月 2 日
我安装 url 没有出现你说的情况
|
4
guchengf 2015 年 12 月 2 日
npm 3 之后,所有 npm 模块改为平级
这样可以防止重复安装依赖包 |
6
dofy 2015 年 12 月 2 日
|
7
for8ever 2015 年 12 月 2 日
原来如此。。。
|
8
guchengf 2015 年 12 月 2 日
@px1981 根据实际情况来看,如果说某个模块的依赖与公共版本不一致,还是一样会在它的目录下建一个 node_modules 用来存放它的私有依赖版本
|
9
px1981 OP @guchengf 谢谢,在官方文档中也看到了“ You'll only see modules nested underneath one another when two (or more) modules have conflicting dependencies. ”
|
10
Wangxf 2015 年 12 月 2 日
所以每次安装一个模块, node_modules 下面一大坨
|