【发布时间】:2016-03-25 10:58:46
【问题描述】:
我有 package.json 文件,其中提到了以下 devDependencies:
"devDependencies": {
"bower": "^1.7.7",
"connect-ssi": "^1.1.0",
"grunt": "~0.4.5",
"grunt-contrib-compass": "^1.1.0",
"grunt-contrib-concat": "~0.4.0",
"grunt-contrib-connect": "^0.11.2",
"grunt-contrib-handlebars": "^0.11.0",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-qunit": "~0.5.2",
"grunt-contrib-sass": "^0.9.2",
"grunt-contrib-uglify": "~0.5.0",
"grunt-contrib-watch": "~0.6.1",
"grunt-jsdoc": "^1.1.0",
"karma": "^0.13.22",
"karma-jasmine": "^0.3.7"
}
现在,当我运行 npm install 时,它会出现以下错误:
未满足的同行依赖 jasmine-core@* npm WARN EPEERINVALID karma-jasmine@0.3.8 需要 jasmine-core@* 的对等体,但没有安装。 npm WARN EPACKAGEJSON hidebuddy-prototype@0.0.1 没有存储库字段。
hirebuddy-prototype 是 package.json 中的名称。
运行npm install 会安装package.json 中提到的所有依赖项,还是需要分别安装jasmine-core 和karma-jasmine?
【问题讨论】: