javascript - npm 警告错误
问题描述
我正在尝试运行一个使用离子框架 V1 制作的应用程序,我安装了所有必需的工具(我希望如此)。
- npm 版本:6.14.11
- 科尔多瓦版本:10.0.0
- 离子版本:5.4.16
现在,当我在 Visual Studio Code 中打开 app 文件夹并运行npm install
. 我收到这个错误。
npm WARN @angular-devkit/build-angular@0.1102.6 requires a peer of @angular/compiler-cli@^11.0.0 || ^11.2.0-next but none is installed. You must install peer dependencies yourself.
npm WARN @angular-devkit/build-angular@0.1102.6 requires a peer of typescript@~4.0.0 || ~4.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ngtools/webpack@11.2.6 requires a peer of @angular/compiler-cli@^11.0.0 || ^11.2.0-next but none is installed. You must install peer dependencies yourself.
npm WARN @ngtools/webpack@11.2.6 requires a peer of typescript@~4.0.0 || ~4.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-countdown-timer@0.1.9 requires a peer of @angular/core@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-countdown-timer@0.1.9 requires a peer of rxjs@^5.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\rollup\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\watchpack\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\karma\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
audited 1963 packages in 7.652s
98 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
我试图安装同龄人,npm-install-peers
但我不适合我。
package.json 文件:
{
"name": "FoodoRa",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/common": "^7.2.16",
"@angular/core": "^7.2.16",
"@angular/forms": "^7.2.16",
"@angular/http": "^7.2.16",
"@angular/platform-browser": "^7.2.16",
"@angular/platform-browser-dynamic": "^7.2.16",
"@angular/router": "^7.2.16",
"@ionic-native/background-mode": "^5.20.0",
"@ionic-native/bluetooth-serial": "^5.20.0",
"@ionic-native/core": "^5.20.0",
"@ionic-native/native-audio": "^5.20.0",
"@ionic-native/network": "^5.20.0",
"@ionic-native/printer": "^5.20.0",
"@ionic-native/push": "^5.20.0",
"@ionic-native/splash-screen": "^5.20.0",
"@ionic-native/status-bar": "^5.20.0",
"@ionic/angular": "^4.11.10",
"@ionic/storage": "^2.2.0",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"cordova-android": "^9.0.0",
"cordova-ios": "^5.1.1",
"cordova-plugin-bluetooth-serial": "^0.4.7",
"cordova-plugin-brother-label-printer": "^1.1.2",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^2.2.0",
"cordova-plugin-nativeaudio": "^3.0.9",
"cordova-plugin-network-information": "^2.0.2",
"cordova-plugin-printer": "^0.8.0",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-sqlite-storage": "^3.2.1",
"cordova-support-google-services": "^1.1.0",
"core-js": "^2.6.11",
"dayjs": "^1.8.0",
"ngx-countdown": "^8.0.0",
"ngx-countdown-timer": "^0.1.9",
"phonegap-plugin-multidex": "^1.0.0",
"phonegap-plugin-push": "^2.2.3",
"rxjs": "^6.5.4",
"rxjs-compat": "^6.5.2",
"tslib": "^1.9.0",
"zone.js": "~0.8.29"
},
"devDependencies": {
"@angular-devkit/architect": "~0.13.8",
"@angular-devkit/build-angular": "^0.1102.6",
"@angular-devkit/core": "~7.3.8",
"@angular-devkit/schematics": "~7.3.8",
"@angular/cli": "^11.2.6",
"@angular/compiler": "^7.2.16",
"@angular/compiler-cli": "~7.2.2",
"@angular/language-service": "^7.2.16",
"@ionic/angular-toolkit": "~1.5.1",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "^2.0.8",
"@types/node": "^12.0.12",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^6.3.2",
"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": "^7.0.0",
"ts-node": "~8.3.0",
"tslint": "~5.17.0",
"typescript": "~3.1.6"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-sqlite-storage": {},
"cordova-plugin-network-information": {},
"phonegap-plugin-push": {
"ANDROID_SUPPORT_V13_VERSION": "27.+",
"FCM_VERSION": "17.0.+"
},
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-nativeaudio": {},
"cordova-plugin-printer": {
"ANDROID_SUPPORT_V4_VERSION": "28.+"
},
"cordova-plugin-bluetooth-serial": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-brother-label-printer": {}
},
"platforms": [
"ios",
"android"
]
}
}
解决方案
推荐阅读
- go - 如何在 Rider IDE 中突出显示 Go 语言语法
- java - 在java中附加到http url
- google-bigquery - 用 API 作业替换 BigQuery 表
- set - CPLEX:我如何编码这个集合表达式
- python - 打印到控制台中的同一行,覆盖以前的文本,Python 3.6
- sql - 从列中提取值(xmltype)
- java - 使用 Pageable 排序时重复
- aws-lambda - AWS Lambda 如何访问本地 sql server
- xslt-2.0 - 如何删除包括第一个实例在内的重复项并仅包含唯一的非重复节点?
- c++ - 在装箱问题中找到所有可能的变化