我没有多少,但是npm install给了我很多其他我不需要的套餐
"dependencies": {
"require-dir": "^0.3.2"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-concat": "^2.6.1",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^3.0.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": ""
},
"author": "",
"license": "ISC"
}
答案 0 :(得分:0)
使用npm安装gulp依赖项时,还要安装依赖项的依赖项。依赖图很复杂,即使您认为只使用了几个显式包,这些包也可能站在大量库的肩上。
随访: Guide to NPM