3

尝试使用 @ngrx/store 的原理图安装,但安装一直失败说:

The package that you are trying to add does not support schematics. You can try using a different version of the package or contact the package author to add ng-add support.

这是我的角度依赖版本:

"dependencies": {
    "@angular/animations": "~9.0.1",
    "@angular/cdk": "^9.0.0",
    "@angular/common": "~9.0.1",
    "@angular/compiler": "~9.0.1",
    "@angular/core": "~9.0.1",
    "@angular/forms": "~9.0.1",
    "@angular/material": "^9.0.0",
    "@angular/platform-browser": "~9.0.1",
    "@angular/platform-browser-dynamic": "~9.0.1",
    "@angular/router": "~9.0.1",
    "apollo-angular": "^1.8.0",
    "apollo-angular-link-http": "^1.9.0",
    "apollo-cache-inmemory": "^1.6.0",
    "apollo-client": "^2.6.0",
    "apollo-link": "^1.2.11",
    "graphql": "^14.5.0",
    "graphql-tag": "^2.10.0",
    "rxjs": "~6.5.4",
    "tslib": "^1.10.0",
    "zone.js": "~0.10.2"
  },

这是一个新生成的项目,我已经使用ng add命令安装了其他包来强制安装原理图。想知道是否有人可以根据原理图帮助找出ngrx / store无法安装的原因。这是我正在运行的命令,只是为了清楚:ng add @ngrx/store它会引发上述错误。

这也是我使用的文档:https ://ngrx.io/guide/store/install#installing-with-ng-add

提前致谢。

4

0 回答 0