【发布时间】:2016-02-14 19:41:06
【问题描述】:
我的项目依赖于 angular2 beta.6,另一个项目依赖于 angular2 beta.0。
我的项目的package.json
"dependencies": {
"angular2": "2.0.0-beta.6",
"another-project": "0.0.1"
}
另一个项目的package.json
"dependencies": {
"angular2": "2.0.0-beta.0",
}
当我npm install 我的项目时,它会安装angular2 两次:
-
node_modules/angular2(beta.6) -
node_modules/another-project/angular2(beta.0)
试图了解 npm3 如何决定嵌套 angular2 beta.0。是不是因为两者都被称为 angular2,因此它们不能都坐在顶层?
【问题讨论】:
标签: npm npm-install