我没有太多的包,但是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"
}发布于 2018-01-17 08:05:35
当您使用npm安装gulp依赖项时,您也安装了依赖项的依赖项。依赖图是复杂的,即使你认为你只显式地使用了几个包,这些包可能站在大量库的肩膀上。
后续:Guide to NPM
https://stackoverflow.com/questions/48291558
复制相似问题