我有一个Anglar 4离子项目,该项目工作得很好,直到我尝试添加角材料。 从那时起,构建失败,并由于各种错误而导致软件包过期或未安装。我尝试使用
使所有内容保持最新npm install npm-check-updates
然后使用更新选项运行它
ncu -u
但是构建仍然失败。最新的输出是:
PS C:\ projects \ ghost> npm安装rxjs@^6.0.0 npm WARN @ ionic-native / admob-pro @ 4.6.0需要rxjs@^5.0.1的对等节点,但未安装。您必须自己安装对等依赖项。 npm WARN @ ionic-native / core @ 4.11.0需要rxjs@^5.0.1的对等节点,但未安装。您必须自己安装对等依赖项。 npm WARN @ ionic-native / in-app-purchase-2 @ 4.5.3需要rxjs@^5.0.1的同位体,但未安装任何同位体。您必须自己安装对等依赖项。 npm WARN @ ionic-native / splash-screen @ 4.12.2要求rxjs@^5.5.11的同位体,但未安装。您必须自己安装对等依赖项。 npm WARN @ ionic-native / sqlite @ 4.4.0需要rxjs@^5.0.1的同位体,但未安装任何同位体。您必须自己安装对等依赖项。 npm WARN @ ionic-native / status-bar @ 4.12.2需要rxjs@^5.5.11的同位体,但未安装任何同位体。您必须自己安装对等依赖项。 npm警告可选的跳过可选依赖性:fsevents@1.2.4(node_modules \ fsevents): npm WARN notsup跳过可选依赖项:fsevents@1.2.4不受支持的平台:通缉{“ os”:“ darwin”,“ arch”:“ any”}(当前:{“ os”:“ win32”,“ arch”: “ x64”})
我已经尝试过单独安装它们,您可以看到上面的错误可以通过尝试
npm安装rxjs@^6.0.0
尝试安装^ 5.0.1时,它抱怨未安装rxjs@^6.0.0。
我当前的package.json:
{
"name": "ghost",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/animations": "^6.1.7",
"@angular/common": "6.1.7",
"@angular/compiler": "6.1.7",
"@angular/compiler-cli": "6.1.7",
"@angular/core": "6.1.7",
"@angular/forms": "6.1.7",
"@angular/http": "6.1.7",
"@angular/platform-browser": "6.1.7",
"@angular/platform-browser-dynamic": "6.1.7",
"@ionic-native/admob-pro": "^4.6.0",
"@ionic-native/core": "^4.11.0",
"@ionic-native/in-app-purchase-2": "^4.5.3",
"@ionic-native/splash-screen": "4.12.2",
"@ionic-native/sqlite": "^4.4.0",
"@ionic-native/status-bar": "4.12.2",
"@ionic/storage": "2.2.0",
"angular-md5": "^0.1.10",
"cc.fovea.cordova.purchase": "^7.1.2",
"cordova-android": "7.1.1",
"cordova-plugin-admobpro": "^2.31.4",
"cordova-plugin-console": "^1.0.5",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-extension": "^1.5.4",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.2.2",
"cordova-plugin-whitelist": "^1.3.1",
"cordova-sqlite-storage": "^2.2.1",
"ionic-angular": "3.9.2",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "4.4.3",
"ng2-socket-io": "^0.1.7",
"ngx-facebook": "^2.4.0",
"rxjs": "^5.5.12",
"socket.io-client": "^2.0.4",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.26"
},
"devDependencies": {
"@ionic/app-scripts": "3.2.0",
"typescript": "^2.9.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-console": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-whitelist": {},
"ionic-plugin-keyboard": {},
"cordova-sqlite-storage": {},
"cc.fovea.cordova.purchase": {
"BILLING_KEY": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiXowzRxSOngnQxjOye2KlNab0Trgan9mupsgoe9WfjCaMlFwj9GsMNYYHhWXpAelN0tx2kusW6IS+fPVTSTapwmFmNX2ssycKtVvRC9pSA5fDWo9Ez2z8MENjZ8m2K7fC//qLvYCiFuTB5sos2oMCqlGc36x6SKThk4R1kuJ+yBWijzOBmnEyQyAMRZ+gWltz7wMEWqTCz6w8u6LsJATF3F8KwXy9YGi46+Erixj1d8B26mABXAKomWuwfuhNUazGNNSSldbO9nCCbvq2QIa29odP1su0F1bgjRXuGrjFeKtrfHW8+7dns0g/lTWCPckVI53SLVL3DjtjV+3UmsDOQIDAQAB"
},
"cordova-plugin-admobpro": {}
},
"platforms": [
"android"
]
}
}
请提供建议。谢谢你。