Путать с угловыми зависимостями - PullRequest
0 голосов
/ 28 октября 2019

package.json выглядит следующим образом:

{
  "name": "angular-quiz",
  "version": "0.0.0",
  "private": true,
  "dependencies": {
    "rxjs": "5.0.0-beta.6",
    "core-js": "2.5.5",
    "zone.js": "0.8.26",
    "@angular/core": "2.0.0",
    "@angular/forms": "2.0.0",
    "@angular/common": "2.0.0",
    "@angular/router": "3.0.0-beta.2",
    "@angular/compiler": "2.0.0",
    "@angular/platform-browser": "2.0.0",
    "@angular/platform-browser-dynamic": "2.0.0"
  },
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.10.0",
    "@angular/cli": "~7.0.2",
    "@angular/compiler-cli": "~7.0.0",
    "@angular/language-service": "~7.0.0",
    "@types/node": "~8.9.4",
    "@types/jasmine": "~2.8.8",
    "@types/jasminewd2": "~2.0.3",
    "codelyzer": "~4.5.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~3.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.4.0",
    "ts-node": "~7.0.0",
    "tslint": "~5.11.0",
    "typescript": "~3.1.1"
  }
}

Ошибка:

Build failed with error code: 1
npm WARN @angular/compiler-cli@7.0.4 requires a peer of @angular/compiler@7.0.4 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/core@2.0.0 requires a peer of rxjs@5.0.0-beta.12 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/core@2.0.0 requires a peer of zone.js@^0.6.21 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/compiler@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/core@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.9.3 (node_modules\node-sass):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.9.3 postinstall: node scripts/build.js
npm WARN

optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
...