找到包但不支持原理图

问题描述 投票:0回答:2

在 Angular 13 中,ng add @angular/fire 给出了此错误 ->“找到了包“@angular/fire”,但不支持原理图。”

PS C:\Users\laksh\webdev ngular> ng 添加@angular/fire 跳过安装:软件包已安装 找到包“@angular/fire”,但不支持原理图。 PS C:\Users\laksh\webdev ngular>

angular firebase angular13
2个回答
0
投票

尝试运行 firebase 工具:

npm i -D firebase-tools

上面的代码来自这里

然后使用以下命令安装 firebase:

npm install firebase @angular/fire --force

0
投票

我通过将包 json 更新到最新版本解决了此错误:

{
  "name": "career-portfolio",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "watch": "ng build --watch --configuration development",
    "test": "ng test"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^14.0.4",
    "@angular/cdk": "^14.0.4",
    "@angular/common": "^14.0.4",
    "@angular/compiler": "^14.0.4",
    "@angular/core": "^14.0.4",
    "@angular/forms": "^14.0.4",
    "@angular/material": "^14.0.4",
    "@angular/platform-browser": "^14.0.4",
    "@angular/platform-browser-dynamic": "^14.0.4",
    "@angular/router": "^14.0.4",
    "rxjs": "~7.5.5",
    "tslib": "^2.4.0",
    "zone.js": "~0.11.6"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^14.0.4",
    "@angular/cli": "^14.0.4",
    "@angular/compiler-cli": "^14.0.4",
    "@types/jasmine": "~4.0.3",
    "@types/node": "^18.0.2",
    "jasmine-core": "~4.2.0",
    "karma": "~6.4.0",
    "karma-chrome-launcher": "~3.1.1",
    "karma-coverage": "~2.2.0",
    "karma-jasmine": "~5.1.0",
    "karma-jasmine-html-reporter": "~2.0.0",
    "typescript": "~4.7.4"
  }
}

https://github.com/manfredsteyer/ngx-build-plus/issues/69

© www.soinside.com 2019 - 2024. All rights reserved.