用什么版本? @ angular / service-worker无法构建

时间:2017-12-01 18:10:31

标签: angular

我使用@ angular / service-worker的正确版本吗?在低于2的版本上似乎很奇怪?我尝试过(最新)5.0.4和5.0.2

我的应用使用“ng Serve”在本地运行

虽然我不得不使用typescript 2.6.2。即使我收到消息使用> 2.4.2< 2.5.0

我的错误如下:

  

@ angular / service-worker的安装版本是5.0.2。这个   CLI的版本需要@ angular / service-worker版本   满足> = 1.0.0-beta.5< 2.0.0。请升级您的服务人员   版本

这是我的package.json

"dependencies": {
  "@angular/animations": "5.0.3",
  "@angular/common": "5.0.3",
  "@angular/compiler": "5.0.3",
  "@angular/compiler-cli": "5.0.3",
  "@angular/core": "5.0.3",
  "@angular/forms": "5.0.3",
  "@angular/http": "5.0.3",
  "@angular/platform-browser": "5.0.3",
  "@angular/platform-browser-dynamic": "5.0.3",
  "@angular/platform-server": "5.0.3",
  "@angular/router": "5.0.3",
  "@angular/service-worker": "5.0.2",
  "bootstrap": "3.3.7",
  "breeze-bridge-angular": "4.0.1",
  "breeze-client": "1.6.3",
  "core-js": "2.4.1",
  "font-awesome": "4.7.0",
  "jquery": "3.1.1",
  "ngx-bootstrap": "1.9.3",
  "ngx-color-picker": "4.5.0",
  "ngx-gallery": "2.3.0",
  "primeng": "4.3.0",
  "quill": "1.3.2",
  "rxjs": "5.4.2",
  "screenfull": "3.0.2",
  "toastr": "2.1.2",
  "ts-helpers": "1.1.1",
  "typescript": "2.6.2",
  "webpack": "^3.9.1",
  "zone.js": "0.8.12"
},
"devDependencies": {
  "@angular/cli": "1.5.5",
  "@types/jasmine": "2.5.53",
  "@types/node": "8.0.7",
  "codelyzer": "2.0.0-beta.4",
  "jasmine-core": "2.5.2",
  "jasmine-spec-reporter": "3.2.0",
  "karma": "1.4.1",
  "karma-chrome-launcher": "2.0.0",
  "karma-cli": "1.0.1",
  "karma-coverage-istanbul-reporter": "0.2.0",
  "karma-jasmine": "1.1.0",
  "karma-jasmine-html-reporter": "0.2.2",
  "protractor": "5.1.0",
  "rxjs": "5.1.0",
  "ts-node": "2.0.0",
  "tslint": "4.4.2",
  "typescript": "2.6.2",
  "zone.js": "0.8.12"
}

0 个答案:

没有答案