我在AWS ec2实例上有一个相当典型的malloc()
。我正在运行package.json
而不是安装
npm install
它安装了数十个和几十个软件包(通过{
"name": "angular-app-server",
"description": "Back end server to support our angular app",
"version": "0.0.1",
"private": true,
"dependencies": {
"assert": "^1.3.0",
"async": "^0.9.0",
"bcrypt-nodejs": "0.0.3",
"body-parser": "^1.13.1",
"connect-multiparty": "^1.2.5",
"express": "~3.0",
"express-namespace": "~0.1.1",
"express-session": "^1.11.1",
"forever": "^0.14.2",
"mongodb": "^2.0.36",
"multiparty": "^4.1.2",
"nodemailer": "^1.3.4",
"open": "0.0.3",
"passport": "~0.1.12",
"passport-local": "~0.1.6",
"request": "~2.16.6",
"svgo": "^0.5.3"
},
"devDependencies": {
"grunt": "~0.4",
"grunt-contrib-jshint": "~0.2.0",
"grunt-contrib-nodeunit": "~0.1.2",
"rewire": "^2.0.1",
"supervisor": "~0.4.1"
}
}
& cd node_modules
):
ls
这可能是什么原因?
感谢您的任何建议或帮助。
答案 0 :(得分:9)
这是NPM 2和NPM 3之间的差异。 NPM 3将依赖的第一个版本作为对等体和其他版本的依赖嵌套。
我想它看起来更丑,但占用的空间更少。
答案 1 :(得分:2)
它们是您想要的模块的依赖项。这是无法避免的。