离子错误 - package.json 文件似乎格式不正确



在离子项目中运行离子服务时。

离子服务

[错误] package.json 文件似乎格式不正确。

并且命令被终止。如何修复此错误?

包.json 文件:

{
  "dependencies": {
    "@angular/common": "2.0.0-rc.3",
    "@angular/compiler": "2.0.0-rc.3",
    "@angular/core": "2.0.0-rc.3",
    "@angular/http": "2.0.0-rc.3",
    "@angular/platform-browser": "2.0.0-rc.3",
    "@angular/platform-browser-dynamic": "2.0.0-rc.3",
    "es6-shim": "^0.35.3",
    "firebase": "^3.9.0",
    "ionic-angular": "^3.9.2",
    "ionic-native": "1.3.2",
    "ionicons": "3.0.0",
    "reflect-metadata": "^0.1.12",
    "rxjs": "5.0.0-beta.6",
    "zone.js": "^0.6.12"
  },
  "devDependencies": {
    "del": "2.2.0",
    "gulp": "3.9.1",
    "gulp-watch": "4.3.5",
    "ionic-gulp-browserify-typescript": "2.0.0",
    "ionic-gulp-fonts-copy": "^1.0.0",
    "ionic-gulp-html-copy": "^1.0.0",
    "ionic-gulp-sass-build": "^1.0.0",
    "ionic-gulp-scripts-copy": "^2.0.0",
    "run-sequence": "1.1.5"
  }
}

如果这是您完整的 package.json 文件,请阅读本文档并至少使用所需的元素完成它。

我认为名称和版本字段就足够了。

相关内容

  • 没有找到相关文章