npm установка приложения ionic / angular - ошибка при установке скрипта grpc@1.20.0 - PullRequest
0 голосов
/ 18 февраля 2020

Я пытаюсь настроить / установить существующее приложение ioni c на другой компьютер, но оно всегда не удается. Записывается следующая ошибка:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.20.0 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the grpc@1.20.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Я получил эту ошибку, когда пытался установить пакеты через npm install. Sudo или --verbose также не работают.

Компьютер имеет следующие настройки:

  • Описание: Ubuntu 19.10
  • Релиз: 19.10
  • узел -v: v12.16.0
  • npm -v: 6.13.4

А вот и пакет. json

  "name": "app",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "8.2.4",
    "@angular/core": "8.2.4",
    "@angular/fire": "^5.2.1",
    "@angular/forms": "8.2.4",
    "@angular/http": "7.2.15",
    "@angular/platform-browser": "8.2.4",
    "@angular/platform-browser-dynamic": "8.2.4",
    "@angular/pwa": "^0.13.9",
    "@angular/router": "8.2.4",
    "@angular/service-worker": "8.2.4",
    "@capacitor/android": "^1.2.1",
    "@capacitor/cli": "^1.1.1",
    "@capacitor/core": "^1.1.1",
    "@capacitor/ios": "^1.2.1",
    "@fortawesome/angular-fontawesome": "^0.4.0",
    "@fortawesome/fontawesome-svg-core": "^1.2.25",
    "@fortawesome/free-regular-svg-icons": "^5.11.2",
    "@fortawesome/free-solid-svg-icons": "^5.11.2",
    "@ionic-native/camera": "^5.14.0",
    "@ionic-native/contacts": "^5.14.0",
    "@ionic-native/core": "^5.14.0",
    "@ionic-native/file": "^5.14.0",
    "@ionic-native/file-path": "^5.14.0",
    "@ionic-native/firebase": "^5.14.0",
    "@ionic-native/image-resizer": "^5.14.0",
    "@ionic-native/splash-screen": "^5.14.0",
    "@ionic-native/status-bar": "^5.14.0",
    "@ionic/angular": "4.11.10",
    "@ionic/pwa-elements": "^1.4.1",
    "@ionic/storage": "^2.2.0",
    "@types/lodash": "^4.14.149",
    "cordova-android": "8.0.0",
    "cordova-ios": "5.0.1",
    "cordova-plugin-camera": "^4.1.0",
    "cordova-plugin-contacts": "^3.0.1",
    "cordova-plugin-device": "^2.0.3",
    "cordova-plugin-file": "^6.0.2",
    "cordova-plugin-filepath": "^1.5.6",
    "cordova-plugin-firebase": "^2.0.5",
    "cordova-plugin-ionic-keyboard": "^2.2.0",
    "cordova-plugin-ionic-webview": "^3.1.2",
    "cordova-plugin-splashscreen": "^5.0.3",
    "cordova-plugin-statusbar": "^2.4.3",
    "cordova-plugin-whitelist": "^1.3.4",
    "cordova-sqlite-storage": "^3.3.0",
    "core-js": "3.2.1",
    "currency.js": "^1.2.2",
    "firebase": "^5.11.1",
    "info.protonet.imageresizer": "^0.1.1",
    "ionic": "5.2.7",
    "lodash": "^4.17.15",
    "rxjs": "~6.3.3",
    "zone.js": "~0.8.29"
  },
  "devDependencies": {
    "@angular-devkit/architect": "0.803.2",
    "@angular-devkit/build-angular": "^0.803.24",
    "@angular-devkit/core": "^8.3.5",
    "@angular-devkit/schematics": "8.3.2",
    "@angular/cli": "8.3.2",
    "@angular/compiler": "8.2.4",
    "@angular/compiler-cli": "8.2.4",
    "@angular/language-service": "8.2.4",
    "@ionic/angular-toolkit": "^2.0.0",
    "@types/jasmine": "3.4.0",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^10.12.30",
    "codelyzer": "~4.5.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "^4.4.1",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "^2.0.6",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.4.0",
    "ts-node": "^8.0.3",
    "tslint": "~5.12.0",
    "typescript": "^3.5.3"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-firebase": {},
      "cordova-sqlite-storage": {},
      "cordova-plugin-contacts": {},
      "cordova-plugin-camera": {},
      "info.protonet.imageresizer": {},
      "cordova-plugin-file": {},
      "cordova-plugin-filepath": {}
    },
    "platforms": [
      "ios",
      "android"
    ]
  }
}
...